List of usage examples for javax.swing JTable JTable
public JTable()
JTable
that is initialized with a default data model, a default column model, and a default selection model. From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); // Remove the column headers table.setTableHeader(null);//from ww w .j av a2s . co m }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setShowGrid(true);/*w ww . j a va2s . c o m*/ }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setShowGrid(false);/*ww w. j a v a 2 s . c o m*/ }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setShowGrid(false);/*w w w. j a v a2s .com*/ table.setShowHorizontalLines(true); }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setColumnSelectionAllowed(true); table.setRowSelectionAllowed(true);//from w w w . j av a 2 s . c o m }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setColumnSelectionAllowed(true); table.setRowSelectionAllowed(false); }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table1 = new JTable() { public boolean isCellEditable(int rowIndex, int vColIndex) { return false; }//from ww w . j a v a 2 s . c o m }; }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setRowHeight(table.getRowHeight() + 3); }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); table.setShowGrid(false);/*from ww w . ja v a 2 s.com*/ table.setShowVerticalLines(true); }
From source file:Main.java
public static void main(String[] argv) throws Exception { JTable table = new JTable(); int selMode = table.getSelectionModel().getSelectionMode(); }