Link to home
Create AccountLog in
Avatar of Jaziar
Jaziar

asked on

A simple Java GUI for getting Username and Password

I am looking for a simple pop up box that will allow the user to type in their username and password.  I will grab the values from there and continue with my program.  Can some one help me with the dialog box
ASKER CERTIFIED SOLUTION
Avatar of mespinozae
mespinozae
Flag of Costa Rica image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Try taking a look at swingx (http://swinglabs.org/projects.jsp).

There is a really cool login manager, which is also powerful and easy to use.


JXLoginPanel.JXLoginFrame frm=JXLoginPanel.showLoginFrame(your loginService);
JXLoginPanel jlp = frm.getPanel();
jlp.setMessage("Welcome to myApp");
jlp.setSaveMode(JXLoginPanel.SaveMode.BOTH);

Open in new window