hospital/Hospital Management System/src/Login.java
/**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
This method is called from within the constructor to initialize the form.
WARNING: Do NOT modify this code. The content of this method is always
regenerated by the Form Editor.
This method is called from within the constructor to initialize the form . WARNING : Do NOT modify this code . The content of this method is always regenerated by the Form Editor .
@SuppressWarnings("unchecked")
    private void initComponents() {
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jPasswordField1 = new javax.swing.JPasswordField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        jLabel1.setText("Username");
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 320, 82, -1));
        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        jLabel2.setText("Password");
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 390, 82, -1));
        jTextField1.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 310, 330, 30));
        jPasswordField1.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        getContentPane().add(jPasswordField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 390, 330, 30));
        jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/login.png"))); 
        jButton1.setText("Login");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 480, -1, 30));
        jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); 
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Close.png"))); 
        jButton2.setText("Close");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 480, -1, -1));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Login Page.jpg"))); 
        jLabel3.setText("jLabel3");
        getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1290, 780));
        pack();
    }
@ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { jLabel1 = new javax . swing . JLabel ( ) ; jLabel2 = new javax . swing . JLabel ( ) ; jTextField1 = new javax . swing . JTextField ( ) ; jPasswordField1 = new javax . swing . JPasswordField ( ) ; jButton1 = new javax . swing . JButton ( ) ; jButton2 = new javax . swing . JButton ( ) ; jLabel3 = new javax . swing . JLabel ( ) ; setDefaultCloseOperation ( javax . swing . WindowConstants . EXIT_ON_CLOSE ) ; setUndecorated ( true ) ; getContentPane ( ) . setLayout ( new org . netbeans . lib . awtextra . AbsoluteLayout ( ) ) ; jLabel1 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; jLabel1 . setText ( "Username" ) ; getContentPane ( ) . add ( jLabel1 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 450 , 320 , 82 , - 1 ) ) ; jLabel2 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; jLabel2 . setText ( "Password" ) ; getContentPane ( ) . add ( jLabel2 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 450 , 390 , 82 , - 1 ) ) ; jTextField1 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; jTextField1 . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { jTextField1ActionPerformed ( evt ) ; } } ) ; getContentPane ( ) . add ( jTextField1 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 620 , 310 , 330 , 30 ) ) ; jPasswordField1 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; getContentPane ( ) . add ( jPasswordField1 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 620 , 390 , 330 , 30 ) ) ; jButton1 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; jButton1 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/login.png" ) ) ) ; jButton1 . setText ( "Login" ) ; jButton1 . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { jButton1ActionPerformed ( evt ) ; } } ) ; getContentPane ( ) . add ( jButton1 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 620 , 480 , - 1 , 30 ) ) ; jButton2 . setFont ( new java . awt . Font ( "Tahoma" , 1 , 14 ) ) ; jButton2 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/Close.png" ) ) ) ; jButton2 . setText ( "Close" ) ; jButton2 . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { jButton2ActionPerformed ( evt ) ; } } ) ; getContentPane ( ) . add ( jButton2 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 850 , 480 , - 1 , - 1 ) ) ; jLabel3 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/Login Page.jpg" ) ) ) ; jLabel3 . setText ( "jLabel3" ) ; getContentPane ( ) . add ( jLabel3 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 0 , 0 , 1290 , 780 ) ) ; pack ( ) ; }
This method is called from within the constructor to initialize the form.
This method is called from within the constructor to initialize the form .
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents // NOI18N // NOI18N // NOI18N // NOI18N // NOI18N // NOI18N // NOI18N // NOI18N // NOI18N