Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Screen Resolution

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Screen Resolution

    Hi, I'm new to this forum and was looking for help with an application I'm writing. I have a friend who is partially sighted, he is using NVDA as a text to speech utility (and it's great). He has an issue in that it only works properly when the screen resolution is set to 1024 X 768. He usually has it set to 1920 X 1200. The best solution would obviously be to find a Text to Speech program that works at all resolutions but this is long term, in the short term all he needs is a button which can switch between different screen resolutions. I've built an app which gets all the displaymodes and allows you to choose which ones you want in a cycle and then when you run a script it will jump to the next mode. However, I cannot make the screen mode change within Java. When I set the displaymode all it does is set it within the application's window, I want to set it for the whole system. I've got round it by using (the excellent) Nircmd utility but I would like to control the whole thing from within Java. Is there any way to do it?

    Thanks,
    Neil


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Screen Resolution

    Does he have the latest version of NVDA? I just downloaded the current version and it works at my screen resolution (1366 * 768). Unfortunately, Java does not have the ability to change the screen resolution permanently for the system. You can set the Java application to exclusive full screen mode, but then you can't really see the rest of the desktop and the resolution will still be changed back on program exit.

  3. #3
    Junior Member
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Screen Resolution

    Thanks for the response,
    That confirms what I thought, Java can't do it. Frustrating. I've tried diagnosing NVDA but there doesn't seem any way to make it work properly at any resolution other than 1024 X 768. Steadymouse also doesn't work so there is definitely something wierd about the system in question. Anyway, I have worked around the problme by using NIRCMD which seems to work well enough.

    Thanks, at least I can stop worrying that I've missed something now!
    Neil

Similar Threads

  1. How to get screen size in Applet
    By anm_brr in forum Java Applets
    Replies: 2
    Last Post: August 10th, 2011, 09:21 PM
  2. DNS Resolution
    By nim.izadi in forum Java Theory & Questions
    Replies: 0
    Last Post: November 6th, 2010, 02:25 PM
  3. JTable is not fit to the screen width.
    By rajakumarjk in forum AWT / Java Swing
    Replies: 2
    Last Post: October 12th, 2010, 10:13 AM
  4. clear screen.
    By chronoz13 in forum Java Theory & Questions
    Replies: 10
    Last Post: December 5th, 2009, 07:27 AM
  5. Content positioning on the screen
    By Drakenmul in forum AWT / Java Swing
    Replies: 1
    Last Post: July 27th, 2009, 09:02 AM