[ Back | Previous | Next ]

Creating a quick setup for AbstractTableModel

Package:
javax.swing.table.*
Product:
Swing
Release:
1.0.x
Related Links:
AbstractTableModel
JTable
TableCellRenderer
TableColumn
Comment:
		setModel(new com.sun.java.swing.table.AbstractTableModel() {
			public String getColumnName(int column) {
				return "";
			}
			public int getColumnCount() {
				return 0;
			}
			public int getRowCount() {
				return 0;
			}
			public Object getValueAt(int col, int row) {
				return null;
			}
		});
1