Guest User

Untitled

a guest
Nov 12th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private void method() {
  2. commandDialog.setPreferredSize(new Dimension(100,100));
  3. - - -
  4. - - - //Components added to dialogPanel
  5.  
  6. commandDialog.add(dialogPanel);
  7.  
  8. // Tried this as well: commandDialog.setSize(40, 40);
  9. commandDialog.validate();
  10. commandDialog.setVisible(true);
  11. }
  12.  
  13. commandDialog.setSize(new Dimension(100, 100));
  14. commandDialog.setResizable(false);
  15.  
  16. commandDialog.pack();
  17. commandDialog.setVisible(true);
Add Comment
Please, Sign In to add comment