/**
*
* @author Antony_soluciones
*/
public class UsoTabla extends javax.swing.JFrame {
public UsoTabla() {
initComponents();
}
private void initComponents() {
jSContenedorTabla = new javax.swing.JScrollPane();
jTtablaEjemplo = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTtablaEjemplo.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, null, null, null}
},
new String [] {
"COLUMNA 1", "COLUMNA 2", "COLUMNA 3", "CHECK"
}
) {
Class[] types = new Class [] {
java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Boolean.class
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
});
jSContenedorTabla.setViewportView(jTtablaEjemplo);
getContentPane().add(jSContenedorTabla, java.awt.BorderLayout.CENTER);
jPanel1.setLayout(new java.awt.BorderLayout());
jLabel1.setFont(new java.awt.Font("MetaPlusBookCaps", 1, 12));
jLabel1.setText("HOLA DUDIN ESPERO TE SIRVA ESTO");
jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);
getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
pack();
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new UsoTabla().setVisible(true);
}
});
}
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JScrollPane jSContenedorTabla;
private javax.swing.JTable jTtablaEjemplo;
}