/* * Open_File.java * * Created on October 18, 2003, 5:16 PM */ /** * * @author Minh Nguyen */ public class Open_File extends javax.swing.JFrame { /** Creates new form Open_File */ public Open_File() { 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 jComboBox1 = new javax.swing.JComboBox(); jLabel1 = new javax.swing.JLabel(); 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); } }); jComboBox1.setMaximumSize(new java.awt.Dimension(32767, 200)); getContentPane().add(jComboBox1, java.awt.BorderLayout.CENTER); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Browse File"); getContentPane().add(jLabel1, java.awt.BorderLayout.NORTH); jPanel1.setLayout(new java.awt.GridLayout(1, 2)); jButton1.setText("Open File"); jPanel1.add(jButton1); jButton2.setText("Cancel"); jPanel1.add(jButton2); getContentPane().add(jPanel1, java.awt.BorderLayout.SOUTH); 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 Open_File().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JComboBox jComboBox1; private javax.swing.JLabel jLabel1; private javax.swing.JPanel jPanel1; // End of variables declaration//GEN-END:variables }