/* * Remove_Confirmation.java * * Created on October 18, 2003, 2:46 PM */ /** * * @author Minh Nguyen */ public class Remove_Confirmation extends javax.swing.JFrame { /** Creates new form Remove_Confirmation */ public Remove_Confirmation() { 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 jTextField1 = new javax.swing.JTextField(); jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jTextField1.setText("Pressing OK will permanently remove the question from the test."); getContentPane().add(jTextField1, java.awt.BorderLayout.NORTH); jPanel1.setLayout(new java.awt.GridLayout(1, 2)); jButton1.setText("OK"); jButton1.setMaximumSize(new java.awt.Dimension(26, 26)); jButton1.setMinimumSize(new java.awt.Dimension(26, 26)); jPanel1.add(jButton1); jButton2.setText("Cancel"); jButton2.setMaximumSize(new java.awt.Dimension(26, 26)); jButton2.setMinimumSize(new java.awt.Dimension(26, 26)); jPanel1.add(jButton2); getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER); pack(); }//GEN-END:initComponents /** Exit the Application */ private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm System.exit(0); }//GEN-LAST:event_exitForm /** * @param args the command line arguments */ public static void main(String args[]) { new Remove_Confirmation().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JPanel jPanel1; private javax.swing.JTextField jTextField1; // End of variables declaration//GEN-END:variables }