• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Question about window's size

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am extending JFrame for the GUI, what size should I set it? How to set it to the maximum window size directly when it start? I think there're some methods to do that, but I don't know. Thank you.
 
Miguel Roque
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
In my assignment i've defined min and max values for the screen size and added a component listener to the constructor that listens to the resize of the window. It was something like folloes:

Miguel
 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your not suppossed to post complete solutions so I will post the main
parts and this is pretty standard anyway. To get what you want
call
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic