Wednesday, 2 January 2013

Java Swing :- Window Application ( View Phase 1 )

public class WindowButton extends javax.swing.JFrame {

    /** Creates new form WindowButton */
    public WindowButton() {
        initComponents();
    }
 private void windowButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                             
      new  FormWindow().setVisible(true);
    }                                            

    private void windowButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                             
new SwingTable().setVisible(true);

    }                                            
 public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new WindowButton().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify                    
    private javax.swing.JButton windowButton1;
    private javax.swing.JButton windowButton2;
    // End of variables declaration                  

    private void setVisible(FormWindow formWindow) {
        throw new UnsupportedOperationException("Not yet implemented");
    }

}

No comments:

Post a Comment