Original Post
Is there some utility function to center a JDialog/JFrame so I don't have to code my own? How is it that things as simple such as centering a window demands me HOURS of researching? Is it because I'm drunk? I mean, I do it like this:
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int height = screenSize.height;
int width = screenSize.width;
UsersForm.setLocation((width/2)-(UsersForm.getWidth()/2), (height/2)-(UsersForm.getHeight()/2));
UsersForm.setVisible(true);
But Can I Has a '.setFramePosition(const)' method for once?