Fix row out of order problem for Module order In FV editor.
authorjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Sep 2006 03:23:44 +0000 (03:23 +0000)
committerjlin16 <jlin16@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Sep 2006 03:23:44 +0000 (03:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1594 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFlash.java

index 482188d..869b3b6 100644 (file)
@@ -2660,7 +2660,7 @@ public class FpdFlash extends IInternalFrame {
                 \r
                 jTableModInFv.setRowHeight(20);\r
                 jTableModInFv.setShowGrid(false);\r
-//                jTableModInFv.setAutoCreateColumnsFromModel(false);\r
+                jTableModInFv.setAutoCreateColumnsFromModel(false);\r
                 jTableModInFv.addMouseListener(new MouseAdapter() {\r
 \r
                     /* (non-Javadoc)\r
@@ -2778,7 +2778,7 @@ public class FpdFlash extends IInternalFrame {
                 }\r
                 jTableFpdModules.setRowHeight(20);\r
                 jTableFpdModules.setShowGrid(false);\r
-//                jTableFpdModules.setAutoCreateColumnsFromModel(false);\r
+                jTableFpdModules.setAutoCreateColumnsFromModel(false);\r
                 jTableFpdModules.addMouseListener(new MouseAdapter() {\r
 \r
                     /* (non-Javadoc)\r
@@ -2852,12 +2852,12 @@ public class FpdFlash extends IInternalFrame {
                         }\r
                         \r
                         int rowInModel = ((TableSorter)jTableFpdModules.getModel()).getModelRowIndex(selectedRowRight);\r
-                        String name = fpdModTableModel.getValueAt(selectedRowRight, 0)+"";\r
-                        String mg = fpdModTableModel.getValueAt(selectedRowRight, 1)+"";\r
-                        String mv = fpdModTableModel.getValueAt(selectedRowRight, 2)+"";\r
-                        String pg = fpdModTableModel.getValueAt(selectedRowRight, 3)+"";\r
-                        String pv = fpdModTableModel.getValueAt(selectedRowRight, 4)+"";\r
-                        String arch = fpdModTableModel.getValueAt(selectedRowRight, 5)+"";\r
+                        String name = fpdModTableModel.getValueAt(rowInModel, 0)+"";\r
+                        String mg = fpdModTableModel.getValueAt(rowInModel, 1)+"";\r
+                        String mv = fpdModTableModel.getValueAt(rowInModel, 2)+"";\r
+                        String pg = fpdModTableModel.getValueAt(rowInModel, 3)+"";\r
+                        String pv = fpdModTableModel.getValueAt(rowInModel, 4)+"";\r
+                        String arch = fpdModTableModel.getValueAt(rowInModel, 5)+"";\r
                         String[] row = {name, mg, mv, pg, pv, arch};\r
                         if (name.length() == 0 || name.equals("N/A")) {\r
                             return;\r