1 43 44 package org.jfree.ui.about; 45 46 import javax.swing.JTable ; 47 import javax.swing.table.TableColumn ; 48 import javax.swing.table.TableColumnModel ; 49 50 import org.jfree.ui.SortableTable; 51 52 57 public class SystemProperties { 58 59 62 private SystemProperties () { 63 } 64 65 72 public static SortableTable createSystemPropertiesTable() { 73 74 final SystemPropertiesTableModel properties = new SystemPropertiesTableModel(); 75 final SortableTable table = new SortableTable(properties); 76 77 final TableColumnModel model = table.getColumnModel(); 78 TableColumn column = model.getColumn(0); 79 column.setPreferredWidth(200); 80 column = model.getColumn(1); 81 column.setPreferredWidth(350); 82 83 table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS); 84 return table; 85 86 } 87 88 } 89 | Popular Tags |