In the LoginDemo.java, we have create two text fields text1 and text2 to set the text for username and password. A button is created to perform an action.
Login Form in Swing
This section illustrates you how to create a Login form.
To create a Login Form, we have used two class files:
In the LoginDemo.java, we have create two text fields text1 and text2 to set
the text for username and password. A button is created to perform an action.
The method text1.getText() get the text of username and the method
get the text of password which the user enters. Then we have create a condition
that if the value of text1 and text2 is roseindia, the user will enter into the next page
on clicking the submit button. The NextPage.java is
created to move the user to the next page. In case if the user enters the
invalid username and password , the class JOptionPane provides the
MessageDialog to shows the error message.
April 15, 2012
java, login with "Fogot password"
pls send me codings...
July 5, 2012
thanks for this example
August 20, 2012
how are you
August 21, 2012
Thank You so much for creating this login form program.. it is very easy to study.
November 19, 2012
plese i want code for cinma ticket app
November 21, 2012
November 30, 2012
I am new to JAVA. I would like to know how to invoke login form
November 18, 2013
about this prog
when the error window appear it shows the ok button. u did,t decalare any ok button in this prog how its possible
July 13, 2012
date field in java swing form
please help to solve my problem
i want to add a date field in may project form..
reservation form how to add the date of jurney
date of birth..etc