The Artima Developer Community
Sponsored Link

Java Answers Forum
Screen resolution

2 replies on 1 page. Most recent reply: Dec 3, 2003 11:26 PM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Screen resolution Posted: Dec 3, 2003 6:02 AM
Reply to this message Reply
Advertisement
How do I get the actual screen resolution?

I need it to center a dialog on the center of the Screen


sahas

Posts: 2
Nickname: sahas
Registered: Dec, 2003

Re: Screen resolution Posted: Dec 3, 2003 10:15 PM
Reply to this message Reply
you can have screen size by using

Dimension screensize=Toolkit.getDefaultToolkit().getScreenSize();

this returns total screen size
may be this could help u

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: Screen resolution Posted: Dec 3, 2003 11:26 PM
Reply to this message Reply
thx.
Works fine.

I never remember to use the Toolkit.

Flat View: This topic has 2 replies on 1 page
Topic: java.lang.VerifyError: (class: Previous Topic   Next Topic Topic: JTAPI

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use