Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need some tips here  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I want to develope a swing application that performs :
1. when running the application, the user should be prompted to enter his username and password into a dialog.
2. when the user entering his data, this dialog should DISAPPEARED and the application will try to authenticate the user, if yes, the swing application displayed.
my question is not how to authenticate the user but how the dialog will disappeared and then do the logic to authenticate the user ?
any ideas or tips ??
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Extend JDialog to create your window. When the user clicks Login or OK button validate the user credintials. If authentication is successful, myWindow.dispose().
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!