/* * jfr.java * * Created on March 4, 2002, 10:11 AM */ package Form_Database_short; /** * * @author mm119185 */ public class jfr extends javax.swing.JFrame { /** Creates new form jfr */ public jfr() { 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 jTable1 = new javax.swing.JTable(); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, "fsdafda", null, null}, {null, null, new Integer(111), null}, {null, "fdsafds", null, null}, {null, null, null, null} }, new String [] { "fd", "fdd", "wwww", "rrrr" } ) { Class[] types = new Class [] { java.lang.Object.class, java.lang.Object.class, java.lang.Integer.class, java.lang.Object.class }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } }); getContentPane().add(jTable1, 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 jfr().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JTable jTable1; // End of variables declaration//GEN-END:variables }