Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

JFrames are really bugging me!

  • 16-02-2010 10:03PM
    #1
    Closed Accounts Posts: 117 ✭✭


    I have an application written where a JFrame (which takes in & validates logon details) instantiates another JFrame (if logon is successful). It all works ok EXCEPT the second jframe object appears in the centre of the screen (as it should), but it first appears in the top left corner of the screen for a very annoying instant before repainting itself in the centre.

    Any ideas on how I can eliminate this annoying, unwanted feature. The first jframe object appears in the screen centre immediately when it is invoked. I want the second jframe to behave in the same manner. I have used all the jframe related methods that I can think of...but to no avail. All suggestions gratefully accepted..:confused:


Comments

  • Registered Users, Registered Users 2 Posts: 3,945 ✭✭✭Anima


    Check where its show() method is and make sure you set the location before it, no?


Advertisement