🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #88

Re: How to set Windows XP Screen Resolution?

#88
From: Paul Furbacher [TeamB]
Date: Tue, 17 Jan 2006 17:05
38 lines
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.
Technical Details
Message-ID: <43cd2325$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43cd12df@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,d4755180382ebff0
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 17 Jan 2006 12:05:08 -0500
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: How to set Windows XP Screen Resolution?
References: <43cd12df@newsgroups.borland.com>
In-Reply-To: <43cd12df@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.194.228
Message-ID: <43cd2325$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137517349 69.142.194.228 (17 Jan 2006 09:02:29 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail