Thread View: borland.public.jbuilder.java.swing
4 messages
4 total messages
Started by Daniel Mark
Tue, 17 Jan 2006 15:55
How to set Windows XP Screen Resolution?
Author: Daniel Mark
Date: Tue, 17 Jan 2006 15:55
Date: Tue, 17 Jan 2006 15:55
15 lines
1534 bytes
1534 bytes
Hello all: I would like to create a java application which can help me set Windows XP screen resolution as some value such as 1024 X 768. Lots of topics in this forum are related to how to set screen resolution for current application rather than XP system. Thus after quiting the running application, the system screen resolution doesn't change at all. I would like to set the XP screen resolution and after I quit the java program, the screen resolution should still be the one I just set. Thank you -Daniel
Re: How to set Windows XP Screen Resolution?
Author: Paul Furbacher [TeamB]
Date: Tue, 17 Jan 2006 17:05
Date: Tue, 17 Jan 2006 17:05
38 lines
2402 bytes
2402 bytes
Daniel Mark wrote:
> I would like to create a java application which can help me set Windows XP
> screen resolution as some value such as 1024 X 768.
>
> Lots of topics in this forum are related to how to set screen resolution for
> current application rather than XP system. Thus after quiting the running
> application, the system screen resolution doesn't change at all.
Correct me if I am wrong, but none of the discussions
involve *setting* the operating system's screen resolution.
Rather, they involve *getting* the screen resolution, and making
adjusting something like a frame size and/or location (e.g.,
centered) to the current user setting.
> I would like to set the XP screen resolution and after I quit the java
> program, the screen resolution should still be the one I just set.
For operating system specific control like this, you
would have to write Windows native code (using Delphi,
C, C++ ...), put it in a DLL, and use JNI to access
that external module from within your Java code.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Re: How to set Windows XP Screen Resolution?
Author: Lori M Olson [TeamB]
Date: Tue, 17 Jan 2006 17:56
Date: Tue, 17 Jan 2006 17:56
46 lines
2343 bytes
2343 bytes
Daniel Mark wrote:
> Hello all:
>
> I would like to create a java application which can help me set Windows XP
> screen resolution as some value such as 1024 X 768.
>
> Lots of topics in this forum are related to how to set screen resolution for
> current application rather than XP system. Thus after quiting the running
> application, the system screen resolution doesn't change at all.
>
> I would like to set the XP screen resolution and after I quit the java
> program, the screen resolution should still be the one I just set.
>
>
> Thank you
> -Daniel
>
>
Ditto for what Paul and Paul said. And, you might want to take a look
at the Java Desktop Integration Components (JDIC)
https://jdic.dev.java.net/
I'm quite sure that they don't have exactly what you are looking for,
but I would try to work within that framework, because that's exactly
the reason it was created.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: How to set Windows XP Screen Resolution?
Author: Paul Nichols [TeamB]
Date: Wed, 18 Jan 2006 17:24
Date: Wed, 18 Jan 2006 17:24
20 lines
1508 bytes
1508 bytes
Daniel Mark wrote: > Hello all: > > I would like to create a java application which can help me set Windows XP > screen resolution as some value such as 1024 X 768. > > Lots of topics in this forum are related to how to set screen resolution > for current application rather than XP system. Thus after quiting the > running application, the system screen resolution doesn't change at all. > > I would like to set the XP screen resolution and after I quit the java > program, the screen resolution should still be the one I just set. > > > Thank you > -Daniel You will be much better off trying to do this by calling the Windows System API, which means native code, or JNI at least.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads