hospital/Hospital Management System/src/home.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() {
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/two arrow.png"))); 
        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(10, 23, -1, -1));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/add new patient.png"))); 
        jButton2.setText("Add New Patient Record");
        jButton2.setPreferredSize(new java.awt.Dimension(240, 59));
        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(10, 100, -1, -1));
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/add diag.png"))); 
        jButton3.setText("Add Diagnosis Information");
        jButton3.setPreferredSize(new java.awt.Dimension(240, 59));
        getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 185, -1, -1));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/rsz_history1.png"))); 
        jButton4.setText("Full History of the Patient");
        jButton4.setPreferredSize(new java.awt.Dimension(240, 59));
        getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, -1, -1));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/rsz_update_details.png"))); 
        jButton5.setText("Update Patient Record");
        jButton5.setPreferredSize(new java.awt.Dimension(240, 59));
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 356, -1, -1));
        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/rsz_hospital_information.png"))); 
        jButton6.setText("Hospital Information");
        jButton6.setPreferredSize(new java.awt.Dimension(240, 59));
        getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 441, -1, -1));
        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/exit.png"))); 
        jButton7.setText("Logout");
        jButton7.setPreferredSize(new java.awt.Dimension(240, 59));
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton7, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 527, -1, -1));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Original background.jpg"))); 
        jLabel1.setText("jLabel1");
        getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1300, -1));
        pack();
    }
@ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { jButton1 = new javax . swing . JButton ( ) ; jButton2 = new javax . swing . JButton ( ) ; jButton3 = new javax . swing . JButton ( ) ; jButton4 = new javax . swing . JButton ( ) ; jButton5 = new javax . swing . JButton ( ) ; jButton6 = new javax . swing . JButton ( ) ; jButton7 = new javax . swing . JButton ( ) ; jLabel1 = new javax . swing . JLabel ( ) ; setDefaultCloseOperation ( javax . swing . WindowConstants . EXIT_ON_CLOSE ) ; setUndecorated ( true ) ; getContentPane ( ) . setLayout ( new org . netbeans . lib . awtextra . AbsoluteLayout ( ) ) ; jButton1 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/two arrow.png" ) ) ) ; 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 ( 10 , 23 , - 1 , - 1 ) ) ; jButton2 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/add new patient.png" ) ) ) ; jButton2 . setText ( "Add New Patient Record" ) ; jButton2 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; 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 ( 10 , 100 , - 1 , - 1 ) ) ; jButton3 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/add diag.png" ) ) ) ; jButton3 . setText ( "Add Diagnosis Information" ) ; jButton3 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; getContentPane ( ) . add ( jButton3 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 10 , 185 , - 1 , - 1 ) ) ; jButton4 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/rsz_history1.png" ) ) ) ; jButton4 . setText ( "Full History of the Patient" ) ; jButton4 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; getContentPane ( ) . add ( jButton4 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 10 , 270 , - 1 , - 1 ) ) ; jButton5 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/rsz_update_details.png" ) ) ) ; jButton5 . setText ( "Update Patient Record" ) ; jButton5 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; jButton5 . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { jButton5ActionPerformed ( evt ) ; } } ) ; getContentPane ( ) . add ( jButton5 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 10 , 356 , - 1 , - 1 ) ) ; jButton6 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/rsz_hospital_information.png" ) ) ) ; jButton6 . setText ( "Hospital Information" ) ; jButton6 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; getContentPane ( ) . add ( jButton6 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 10 , 441 , - 1 , - 1 ) ) ; jButton7 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/exit.png" ) ) ) ; jButton7 . setText ( "Logout" ) ; jButton7 . setPreferredSize ( new java . awt . Dimension ( 240 , 59 ) ) ; jButton7 . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { jButton7ActionPerformed ( evt ) ; } } ) ; getContentPane ( ) . add ( jButton7 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 10 , 527 , - 1 , - 1 ) ) ; jLabel1 . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/Original background.jpg" ) ) ) ; jLabel1 . setText ( "jLabel1" ) ; getContentPane ( ) . add ( jLabel1 , new org . netbeans . lib . awtextra . AbsoluteConstraints ( 0 , 0 , 1300 , - 1 ) ) ; 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