- private JTable getJTable1() {\r
- if (jTable1 == null) {\r
- model1 = new NonEditableTableModel();\r
- jTable1 = new JTable(model1);\r
- jTable1.setRowHeight(20);\r
- model1.addColumn("ModuleName");\r
- model1.addColumn("ModuleGUID");\r
- model1.addColumn("ModuleVersion"); \r
- model1.addColumn("PackageGUID");\r
- model1.addColumn("PackageVersion");\r
-// model1.addColumn("SupportedArch");\r
+ private JTable getJTableFpdModules() {\r
+ if (jTableFpdModules == null) {\r
+ modelFpdModules = new FpdModulesTableModel();\r
+ TableSorter sorter = new TableSorter(modelFpdModules);\r
+ jTableFpdModules = new JTable(sorter);\r
+ sorter.setTableHeader(jTableFpdModules.getTableHeader());\r
+ jTableFpdModules.setRowHeight(20);\r
+ modelFpdModules.addColumn("<html>Module<br>Name</html>");\r
+ modelFpdModules.addColumn("<html>Package<br>Name</html>");\r
+ modelFpdModules.addColumn("Path");\r
+ modelFpdModules.addColumn("<html>Supported<br>Architectures</html>");\r
+ modelFpdModules.addColumn("<html>Module<br>Type</html>");\r
+ modelFpdModules.addColumn("<html>Module<br>Version</html>");\r
+ modelFpdModules.addColumn("<html>Package<br>Version</html>");\r
+ modelFpdModules.addColumn("<html>Force<br>Debug</html>");\r
+ \r
+ javax.swing.table.TableColumn column = null;\r
+ column = jTableFpdModules.getColumnModel().getColumn(modNameColForFpdModTable);\r
+ column.setPreferredWidth(modNamePrefWidth);\r
+ column.setMinWidth(modNameMinWidth);\r
+ column.setMaxWidth(modNameMaxWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(modVerColForFpdModTable);\r
+ column.setPreferredWidth(verPrefWidth);\r
+ column.setMaxWidth(verMaxWidth);\r
+ column.setMinWidth(verMinWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(pkgNameColForFpdModTable);\r
+ column.setPreferredWidth(pkgNamePrefWidth);\r
+ column.setMinWidth(pkgNameMinWidth);\r
+ column.setMaxWidth(pkgNameMaxWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(pkgVerColForFpdModTable);\r
+ column.setPreferredWidth(verPrefWidth);\r
+ column.setMaxWidth(verMaxWidth);\r
+ column.setMinWidth(verMinWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(archColForFpdModTable);\r
+ column.setPreferredWidth(archPrefWidth);\r
+ column.setMaxWidth(archMaxWidth);\r
+ column.setMinWidth(archMinWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(pathColForFpdModTable);\r
+ column.setPreferredWidth(pathPrefWidth);\r
+ column.setMinWidth(pathMinWidth);\r
+ column = jTableFpdModules.getColumnModel().getColumn(typeColForFpdModTable);\r
+ column.setPreferredWidth(typePrefWidth);\r
+ column.setMaxWidth(typeMaxWidth);\r
+ column.setMinWidth(typeMinWidth);\r
+\r
+ jTableFpdModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
+ jTableFpdModules.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r