sort modules by name alphabetically when start; make column width resizable and remov...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdFrameworkModules.java
index c8f9afc60c72b522a71226437afa194aa3e42866..d64b00329ffb85e921af2a2741e04ae150d72090 100644 (file)
@@ -277,7 +277,7 @@ public class FpdFrameworkModules extends IInternalFrame {
             column.setMinWidth(pathMinWidth);\r
 \r
             jTableAllModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
-                       // jTableAllModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
+                       jTableAllModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
         }\r
         return jTableAllModules;\r
     }\r
@@ -477,7 +477,7 @@ public class FpdFrameworkModules extends IInternalFrame {
             column.setMinWidth(pathMinWidth);\r
 \r
             jTableFpdModules.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
-                       // jTableFpdModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
+                       jTableFpdModules.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\r
         }\r
         return jTableFpdModules;\r
     }\r
@@ -656,6 +656,8 @@ public class FpdFrameworkModules extends IInternalFrame {
                 al.add(saa[i][ffcModArch]);\r
 \r
             }\r
+            TableSorter sorter = (TableSorter)jTableFpdModules.getModel();\r
+            sorter.setSortingStatus(modNameColForFpdModTable, TableSorter.ASCENDING);\r
         }\r
 \r
         showAllModules();\r
@@ -693,6 +695,9 @@ public class FpdFrameworkModules extends IInternalFrame {
                 miList.add(mi);\r
             }\r
         }\r
+        \r
+        TableSorter sorter = (TableSorter)jTableAllModules.getModel();\r
+        sorter.setSortingStatus(modNameColForAllModTable, TableSorter.ASCENDING);\r
     }\r
 \r
     /**\r