/* * saveMachine.java * * Created on December 7, 2002, 3:32 PM */ package JSE; /** * * @author S */ public class Protocol extends javax.swing.JFrame { /** Creates new form saveMachine */ public Protocol() { initComponents(); } /** 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. */ private void initComponents() {//GEN-BEGIN:initComponents jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); cmdBtnCancel = new javax.swing.JButton(); cmdBtnEnter = new javax.swing.JButton(); setTitle("Protocol"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(600, 200)); jLabel1.setText("Please Enter Protocol Name:"); jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 40, -1, -1)); jLabel2.setText("Please Enter Machine 1's Full Name:"); jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 70, -1, -1)); jLabel3.setText("Please Enter Machine 2's Full Name:"); jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 100, -1, -1)); jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 40, 340, -1)); jPanel1.add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 70, 340, -1)); jPanel1.add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 100, 340, -1)); cmdBtnCancel.setText("Cancel"); cmdBtnCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cmdBtnCancelActionPerformed(evt); } }); jPanel1.add(cmdBtnCancel, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 150, -1, -1)); cmdBtnEnter.setText("Submit"); jPanel1.add(cmdBtnEnter, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 150, -1, -1)); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); pack(); }//GEN-END:initComponents private void cmdBtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdBtnCancelActionPerformed // Add your handling code here: }//GEN-LAST:event_cmdBtnCancelActionPerformed /** Exit the Application */ private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm }//GEN-LAST:event_exitForm /** * @param args the command line arguments */ public static void main(String args[]) { new Protocol().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel3; private javax.swing.JTextField jTextField3; private javax.swing.JLabel jLabel2; private javax.swing.JButton cmdBtnEnter; private javax.swing.JPanel jPanel1; private javax.swing.JTextField jTextField2; private javax.swing.JButton cmdBtnCancel; private javax.swing.JTextField jTextField1; // End of variables declaration//GEN-END:variables }