Grace,

Query for the resolution of the screen, then subtract the width of your
GUI dialog and use that as your x location to draw it.

- John Wright
Starfire Research

Grace S wrote:
>
> Hi,
> The following code is executed when a user  presses the �F1� key.
>
>         public void mapPopup() {
>
>                         Toolbar3 gui = new Toolbar3();
>
>                 }
>
> It calls �Toolbar3()� which is a swing GUI.  When the GUI is loaded it gets
> displayed by default in the top left hand corner, I was wondering how &
> where I would specify for the GUI to be displayed in the top right hand
> corner.
>
> Thanks
> Grace
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to