Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Screen Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Screen Size" Watch "Screen Size" New topic
Author

Screen Size

Karen Baog
Ranch Hand

Joined: Mar 02, 2005
Posts: 120
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.



amerzil co-ed student<br />"Praise be the Code"
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

You want java.awt.Toolkit.getDefaultToolkit().getScreenSize().


[Jess in Action][AskingGoodQuestions]
 
GeeCON Prague 2014
 
subject: Screen Size