Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Screen Size

 
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
Marshal
Pie
Posts: 24208
35
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