/* * Replace_Question_Confirmation_Window.java * * Created on October 19, 2003, 3:26 AM */ /** * * @author Tyler Vodak */ public class Replace_Question_Confirmation_Window extends javax.swing.JFrame { /** Creates new form Replace_Question_Confirmation_Window */ public Replace_Question_Confirmation_Window() { 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(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jTextField1 = new javax.swing.JTextField(); setTitle("Replace Question Confirmation"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jButton1.setText("OK"); jPanel1.add(jButton1); jButton2.setText("Cancel"); jPanel1.add(jButton2); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); jTextField1.setBackground(new java.awt.Color(204, 204, 204)); jTextField1.setEditable(false); jTextField1.setFont(new java.awt.Font("Dialog", 1, 14)); jTextField1.setText("Are you sure you want to replace this question?"); getContentPane().add(jTextField1, 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 Replace_Question_Confirmation_Window().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 }