Skip to main content

How to load the main frame while pop up login dialog?

1 reply [Last post]
ekin_00
Offline
Joined: 2006-01-10
Points: 0

Hi,

I wrote a small swing application for our HR, now they would like to have some "security". Basically they want a user name and password screen so Mr. Joe can not look at the data. My question is how can I go about loading the main frame in the background but make it not accessable until user pass the login screen (setVisible?)? does it require thread? :) it'll be my first thread realated coding so please help me out. I came from VB background so please take it easy on me.

I saw a "login" screen http://java.sun.com/products/jlf/ed2/book/index.html it's pretty nice that I would like to "plug" into my current.

thank you,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ekin_00
Offline
Joined: 2006-01-10
Points: 0

oh~ I actually found same question post in sun's developer forums. what I probably would do is to create main frame and setEnabled to false until login return with successful login flag. back to coding.