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.

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.