/* * TMBug.java * * Created on June 20, 2000, 6:18 PM */ package tmbug; /** * * @author gennady * @version */ public class TMBug extends javax.swing.JFrame { /** Creates new form TMBug */ public TMBug() { initComponents (); pack (); } /** 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 FormEditor. */ private void initComponents () {//GEN-BEGIN:initComponents jScrollPane1 = new javax.swing.JScrollPane (); 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, null, null, null, null}, {null, null, null, null, null}, {null, null, null, null, null}, {null, null, null, null, null}, {null, null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4", "Title 5" } ) { Class[] types = new Class [] { java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class }; public Class getColumnClass (int columnIndex) { return types [columnIndex]; } }); jScrollPane1.setViewportView (jTable1); getContentPane ().add (jScrollPane1, java.awt.BorderLayout.CENTER); }//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 TMBug ().show (); } // Variables declaration - do not modify//GEN-BEGIN:variables protected javax.swing.JScrollPane jScrollPane1; protected javax.swing.JTable jTable1; // End of variables declaration//GEN-END:variables }