This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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: 24190
    
  34

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


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Screen Size
 
It's not a secret anymore!