/* * rgFromInitialState.java * * Created on December 7, 2002, 3:51 PM */ package JSE; /** * * @author S */ public class rgFromInitialState extends javax.swing.JFrame { /** Creates new form rgFromInitialState */ public rgFromInitialState() { 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(); jTextField1 = new javax.swing.JTextField(); cmdBtnEnter = new javax.swing.JButton(); cmdBtnCancel = new javax.swing.JButton(); setTitle("RG From Initial State"); 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("Save Machine: Full Name is ."); jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 370, -1)); jLabel2.setText("How deep (number of levels) to explore:"); jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 60, -1, -1)); jPanel1.add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 60, 210, -1)); cmdBtnEnter.setText("Submit"); jPanel1.add(cmdBtnEnter, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 110, -1, -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(450, 110, -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 rgFromInitialState().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JButton cmdBtnEnter; private javax.swing.JPanel jPanel1; private javax.swing.JButton cmdBtnCancel; private javax.swing.JTextField jTextField1; // End of variables declaration//GEN-END:variables }