Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Size of JFrame according to screen  RSS feed

 
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: 20904
81
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!