• Post Reply Bookmark Topic Watch Topic
  • New Topic

Size of JFrame according to screen

 
adeeb alexander
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I have provided the size of JFrame like f.setSize(700,700). What i need is that the size must be varied according to the size of the screen.

Thanks
adeeb.
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out Toolkit.getScreenSize().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!