Advertisement
charleston10

JInternalFrame em um JDesktopPane

Sep 9th, 2013
7,972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1.  private void centralizaForm(JInternalFrame frame) {
  2.         Dimension desktopSize = frmMdi.getSize();
  3.         Dimension jInternalFrameSize = frame.getSize();
  4.         frame.setLocation((desktopSize.width - jInternalFrameSize.width) / 2,
  5.                 (desktopSize.height - jInternalFrameSize.height) / 2);
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement