Home Discussion Discuss: Login Form in Swing

  • JavaAmir April 2, 2011 at 3:28 PM

    so....if i want to connect a database using this coding....how????

  • quesrajni June 8, 2011 at 4:27 PM

    password field will not get the astrik using dis code,how to convert d string of password to astrik form

  • it shows the problems assaiteja July 4, 2011 at 1:25 PM

    E:\frames>javac SFrame.java SFrame.java:4: SFrame is not abstract and does not override abstract method acti onPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener class SFrame extends JFrame implements ActionListener ^ 1 error E:\frames>

  • codeanitha August 25, 2011 at 7:17 PM

    good

  • ITluthando September 6, 2011 at 4:39 PM

    I'm stragling to use quiries using java

  • JAVA khem September 15, 2011 at 11:54 AM

    i want code of login page, and i feel very relax

  • login formravi pali October 25, 2011 at 12:40 PM

    my login formimport javax.swing.*; import java.awt.*; class NextPage extends JFrame { NextPage() { setDefaultCloseOperation(javax.swing. WindowConstants.DISPOSE_ON_CLOSE); setTitle("Welcome"); setSize(400, 200); } } Here is the code of LoginDemo.java import javax.swing.*; import java.awt.*; import java.awt.event.*; class Login extends JFrame implements ActionListener { JButton SUBMIT; JPanel panel; JLabel label1,label2; final JTextField text1,text2; Login() { label1 = new JLabel(); label1.setText("Username:"); text1 = new JTextField(15); label2 = new JLabel(); label2.setText("Password:"); text2 = new JPasswordField(15); SUBMIT=new JButton("SUBMIT"); panel=new JPanel(new GridLayout(3,1)); panel.add(label1); panel.add(text1); panel.add(label2); panel.add(text2); panel.add(SUBMIT); add(panel,BorderLayout.CENTER); SUBMIT.addActionListener(this); setTitle("LOGIN FORM"); } public void actionPerformed(ActionEvent ae) { String value1=text1.getText(); String value2=text2.getText(); if (value1.equals("roseindia") && value2.equals("roseindia")) { NextPage page=new NextPage(); page.setVisible(true); JLabel label = new JLabel("Welcome:"+value1); page.getContentPane().add(label); } else{ System.out.println("enter the valid username and password"); JOptionPane.showMessageDialog(this,"Incorrect login or password", "Error",JOptionPane.ERROR_MESSAGE); } } } class LoginDemo { public static void main(String arg[]) { try { Login frame=new Login(); frame.setSize(300,100); frame.setVisible(true); } catch(Exception e) {JOptionPane.showMessageDialog(null, e.getMessage());} } }

  • login formravi November 4, 2011 at 5:48 PM

    my login form

  • database connectionferat December 2, 2011 at 6:21 PM

    allright how can we do database connection for users.example : there is a database which includes usernames and passwords.

  • murtazamurtaza December 6, 2011 at 4:51 PM

    yahoo jani and i love yahoo

  • regarding project on hotel management systemakhilesh kumar choudhary January 5, 2012 at 12:00 AM

    sir, please provide me code java project on hotel management system with have no advance booking criteria, or provide me detail from where i shall get it with free.

  • postDevendran January 7, 2012 at 6:29 PM

    i'm fresher to swing concept....thank you

  • javaAvinash January 16, 2013 at 4:48 PM

    login form

  • jframesaagr vekariya March 30, 2012 at 10:00 PM

    thanks

  • englishUMAR RIZWAN April 1, 2012 at 8:10 PM

    best

  • good jobrajesh July 5, 2012 at 2:49 PM

    thanks for this example

  • javagopal August 20, 2012 at 12:51 PM

    how are you

  • swing javaThaya August 21, 2012 at 3:03 PM

    Thank You so much for creating this login form program.. it is very easy to study.

  • cinma tickethamood November 19, 2012 at 8:26 PM

    plese i want code for cinma ticket app

  • ........sourabh November 21, 2012 at 8:58 AM

    nice...............

  • Login FormKudakwashe Muparaganda November 30, 2012 at 8:25 PM

    I am new to JAVA. I would like to know how to invoke login form

  • about this progsaravanan November 18, 2013 at 4:22 PM

    when the error window appear it shows the ok button. u did,t decalare any ok button in this prog how its possible

  • date field in java swing formappu July 13, 2012 at 12:12 PM

    please help to solve my problem i want to add a date field in may project form.. example reservation form how to add the date of jurney date of birth..etc

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Swing AWT

How to convert a swing form to PDF
How to convert a swing form to PDF  Sir, I want to know about how convert a swing form containing textbox,JTable,JPanel,JLabel, Seperator etc swing menus to a PDF file using java code 

Swing AWT

put image on form creating in swing-swing code - Swing AWT
put image on form creating in swing-swing code  i want to display image on swing panel and get the image co ordinate by mouse clicking.and also zoom the image at particular area of image. please give solution on my email id 

Swing AWT

SWT login form - Swing AWT
SWT login form  Hi, I want code to create a login form in SWT. My...(2, false)); shell.setText("Login form"); label1=new Label(shell...|SWT.CANCEL); messageBox.setText("Login Form"); messageBox.setMessage 

Java Beginners

Jva swing
Jva swing   How to create the model form like "Notepad 

Swing AWT

Problem when resizing the form - Swing AWT
resizing the form. I have a JTextPane on the JInternalFrame which occupy all the form space at initial stage. we have a button to add a new JTextPane on the form.... But When we resize the form, the old JTextPane moves to its initial position 

Swing AWT

New Problem in Form Resizing - Swing AWT
New Problem in Form Resizing  Hi, I am using a MDI application which have a menu item New which adds My New JInternalFrame form to the desktopPane... of the JInternalFrame form space at initial stage. at initial stage the code part 

Swing AWT

java swing - Swing AWT
java swing   how i can insert in JFrame in swing?  Hi Friend, Try the following code: import java.awt.*; import javax.swing....); f.add(panel,BorderLayout.CENTER); f.setTitle("FORM 

Swing AWT

swing - Swing AWT
in the form of image? Thanks 

Swing AWT

Swing login form example
Swing login form example In this example we have described swing login form. We have created one text field "textField" and one jPasswordField and we have set text for username and password. We create one submit button and perform 

Swing AWT

swing login code
swing login code  code for the login form 

Swing AWT

How to create form in Swings
How to create form in Swings  How to create registration, login and question form in Java Swing?   Creating different forms in Java Swing - Examples how to create registration form in swing swing login form example 

Java Code Examples

Display Logo on login form using swing
Display Logo on login form using swing In this tutorial, you will learn how to display a logo in login form using swing components. Here is an example where... a logo for this login form, we have used ImageIcon class that accepts the image 

Java Beginners

login form
login form  sir my next form consists logout button when i click on it it showing login form but next form window is not closing but the components...; LoginDemo() { setTitle("Login Form"); setLayout(null); label1 = new 

Swing AWT

Swing Program
; LoginDemo(){ setTitle("Login Form"); setLayout(null); label1...Swing Program  write a java swing program to get username...=con.createStatement(); ResultSet rs=st.executeQuery("select * from login 

Development process Questions

java swing
java swing  what is code for diplay on java swing internal frame form MYSQL DB pls send   Here is a code of creating form... createFrame() { final JInternalFrame frame = new JInternalFrame("Form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

Java swing code
Java swing code  can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form 

Java Beginners

swing question
text1,text2; LoginDemo(){ setTitle("Login Form"); setLayout(null...swing question  please provide me a program with oracle conectivity in which it consist of a log in page. and when i clicked login it takes data from 

Java Beginners

Java swing
Java swing  how to create the login form?   1... label1,label2; final JTextField text1,text2; LoginDemo() { setTitle("Login Form...=st.executeQuery("select * from login where username='"+value1+"' and password 

Development process Questions

java swing
java swing  what is code for dislay image on java swinginternalframe form MYSQL DB pls send   Here is a code that displays an image on internal frame. import java.awt.*; import java.io.*; import javax.imageio. 

Java Beginners

swing question - Java Beginners
swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Java Beginners

Print Form - Java Beginners
Print Form  Hello Sir I have Created Admission Form when user fills... want to get Print of that forms Contents,How I can Do it with JAVA SWING,plz...://www.roseindia.net/java/example/java/swing/Print.shtml Hope that it will be helpful 

Java Beginners

java swing question - Java Beginners
java swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Blog

Sitemap Java Swing Tutorial
Swing | Color Effect On Image | Login Form in Swing | Sum of a Number...-to-One Relationship | JPA-QL Queries Java Swing Tutorial Section Java Swing Introduction | Java 2D API | Data Transfer in Java Swing 

Java3D Questions

SWING
SWING  A JAVA CODE OF MOVING TRAIN IN SWING 

Swing AWT

retrieve data from database in java swing form using prev n next buttons
retrieve data from database in java swing form using prev n next buttons  i have a database having columns id(int),path(text),width(int),height(int),avdRed(float),avgGreen(float),avgBlue(float) i have to retrieve all the fields 

DMCA.com