aspose file tools
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Screen Size" Watch "Screen Size" New topic

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

Joined: Jul 08, 2003
Posts: 24189

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

[Jess in Action][AskingGoodQuestions]
jQuery in Action, 2nd edition
subject: Screen Size