Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void centralizaForm(JInternalFrame frame) {
- Dimension desktopSize = frmMdi.getSize();
- Dimension jInternalFrameSize = frame.getSize();
- frame.setLocation((desktopSize.width - jInternalFrameSize.width) / 2,
- (desktopSize.height - jInternalFrameSize.height) / 2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement