#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    U.K.
    Posts
    15
    Rep Power
    0

    Positioning a GUI on the screen


    I have written a program that starts with a GUI (JFrame) and depending on what the user does - aside from complaining how it looks - triggers other GUI to be displayed.

    My question is - is there any way of specifying where the GUI is rendered. They all appear in the top left corner of the screen.

    Thanks in advance,

    M.
    Last edited by mwarford; March 3rd, 2003 at 09:09 AM.
  2. #2
  3. No Profile Picture
    hmmmm...
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    UK
    Posts
    37
    Rep Power
    14
    look at setBounds();
    Some things can be more simple than you think....
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    U.K.
    Posts
    15
    Rep Power
    0
    Perfect.

    Cheers Matt.

IMN logo majestic logo threadwatch logo seochat tools logo