Article View: borland.public.jbuilder.java.language
Article #15254Re: Help on dialog manipulations?
From: Paul Furbacher
Date: Mon, 28 Jun 1999 00:00
Date: Mon, 28 Jun 1999 00:00
35 lines
1774 bytes
1774 bytes
Eric Advincula wrote: > How do I do the following: > 1. Get the screen resolution ( window NT ) like the windows api version of > GetSystemMetrics()? Toolkit.getDefaultToolkit().getScreenResolution(); > 2. Move a dialog/frame like (MoveWindow() win32 api )? myDialog.setLocation(x,y); // setLocation() is inherited from java.awt.Component > 3. Resize a dialog/frame( MoveWindow() win32 api)? myDialog.resize(w, h); // resize() is inherited from java.awt.Component It's helpful to read the JBuilder manual to find out how to drill down into the source code of the classes from which your dialog class inherits. At some point (i.e., Component), you will discover methods for positioning the window/dialog (what you call MoveWindow() in the Win32 API) and resizing the window/dialog. In order to use JBuilder effectively, you have to learn how to do this class navigation. Often, it's the only way to discover what you need. > I'm just targetting windows so if I have to use jni to tap > into the windows api then that is ok too. There should be absolutely no need to use JNI for any of the above, as far as I can see. Paul Furbacher (TeamB)
Technical Details
Message-ID:
<3776F869.43C8564@bilbo.bio.purdue.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7l4046$j3b3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6b1c693e0ed4547f X-Google-Attributes: gidf74b3,public From: Paul Furbacher <pf@bilbo.bio.purdue.edu> Subject: Re: Help on dialog manipulations? Date: 1999/06/28 Message-ID: <3776F869.43C8564@bilbo.bio.purdue.edu> X-Deja-AN: 494643984 Content-Transfer-Encoding: 7bit References: <7l4046$j3b3@forums.borland.com> 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