daily pastebin goal
29%
SHARE
TWEET

size

RandomGuy32 Sep 13th, 2015 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. paletteCanvas.setPreferredSize(new Dimension(256, 256));
  2. System.out.println(paletteCanvas.getSize());
  3. paletteFrame.setResizable(false);
  4. System.out.println(paletteCanvas.getSize());
  5. paletteFrame.pack();
  6. System.out.println(paletteCanvas.getSize());
  7.  
  8. /*
  9. OUTPUT:
  10. java.awt.Dimension[width=0, height=0]
  11. java.awt.Dimension[width=0, height=0]
  12. java.awt.Dimension[width=266, height=266]
  13. */
RAW Paste Data
Top