• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can someone please help

 
Dan Ush
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone.. I am having a little problem and I can't quite figure it out

I am trying to make a simple GUI which asks for username/password.. sends that information to check against database.. if its true come back .. clear the contents of the frame and start building the client side app ( I am not quite sure how to do this part ). Do I ask for the username/password in a dialog and then full client app in a frame? or have username/password in a frame and then dialog for full client app?

Here is what I have...

ANd this is the LoginWindow() code



Feedback appreciated
 
Campbell Ritchie
Marshal
Posts: 52590
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
You might have got a quicker reply with a more informative thread title.

A dialog sounds a good way to enter a password. Remember you may have to encrypt the password if you are passing it across a network.

Other people will have different opinions.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yah, JDialog is the right fit for username/password. You can initially just launch the dialog and check the credentials. If the credentials are not good or if there are validation errors, user can return to the dialog to re-enter. If login is successful, you just call dialog.dispose() and build a frame and show it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!