Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

JFrames are really bugging me!

  • 16-02-2010 9: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