Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Screen Size  RSS feed

 
Karen Baog
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!

I need to get the screen size so I can position my JFrame relative to the screen size.

I've searched this forum and there seems to be no thread on this.

Thanks to all.

 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want java.awt.Toolkit.getDefaultToolkit().getScreenSize().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!