Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Screen Resolution Posted by learningJava on 24 Sept 2005 at 2:05 AM
Hi is there ne1 out there who can tell me how to get a computers screen resolution. I would like to be able to add a message at the begining of my proram telling the user if there computer is not set at the optimal screen resolution.
All help will be greatly appreciated!
Report
Re: Screen Resolution Posted by arb123 on 26 Sept 2005 at 1:45 AM
: Hi is there ne1 out there who can tell me how to get a computers screen resolution. I would like to be able to add a message at the begining of my proram telling the user if there computer is not set at the optimal screen resolution.
: All help will be greatly appreciated!
:

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

Dimension and Toolkit are in the java.awt package.

---------------------------------
(Its just my sig)
HOWTO ask questions: http://catb.org/~esr/faqs/smart-questions.html





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.