🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14709

Re: Fullscreen, java3d

#14709
From: Paul Furbacher
Date: Mon, 16 Aug 1999 00:00
34 lines
1713 bytes
Claude Glauser wrote:

> Window w = new Window(this);           //this = Frame Object
> w.setSize(1024,768);
> w.add(XXXX,"Center");                       // XXXX = Canvas3D Object
> w.show();
> 
> My question: Is this a good way to build a FullScreen application ?

Nine times out of 10, the user won't be using 1024 x 768.

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


> How can I change screen resolution, for instance ?

Java isn't very good at setting machine settings.  You'll
notice that there aren't any "set" equivalents to the 
get methods in the class, Toolkit.  The other class by you
might expect to set some system properties, "System"
doesn't offer much help either.  
   
The only way to set something like screen resolution is
through native calls.  JConfig is only cross-platform library 
that I know of is which helps you set such system properties.

  http://www.tolstoy.com/samizdat/jconfig.html

I haven't used it, but a good number on the MRJ-Dev list (Apple)
have and seem to be pretty happy with it.


Paul Furbacher (TeamB)
Technical Details
Message-ID: <37B82259.7B6CB431@bilbo.bio.purdue.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37B48C89.A047D90D@smile.ch> <37B73B63.B4BDEFB1@smile.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2292adf0cffa41fe
X-Google-Attributes: gidf74b3,public
From: Paul Furbacher <pf@bilbo.bio.purdue.edu>
Subject: Re: Fullscreen, java3d
Date: 1999/08/16
Message-ID: <37B82259.7B6CB431@bilbo.bio.purdue.edu>
X-Deja-AN: 513390186
Content-Transfer-Encoding: 7bit
References: <37B48C89.A047D90D@smile.ch> <37B73B63.B4BDEFB1@smile.ch>
Content-Type: text/plain; charset=us-ascii
Organization: Reverse Alchemy, Inc.
Mime-Version: 1.0
Reply-To: pf@bilbo.bio.purdue.edu
Newsgroups: borland.public.jbuilder.java.language