1. Fix EDKT215: [Wizard] "Previous" button is not supported in step 4 of Create FAR
authorhche10x <hche10x@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 30 Jan 2007 01:31:32 +0000 (01:31 +0000)
committerhche10x <hche10x@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 30 Jan 2007 01:31:32 +0000 (01:31 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2333 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepFour.java
edk2/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/createui/CreateStepThree.java

index 3d3fdde..ab2ffd0 100644 (file)
@@ -174,7 +174,7 @@ public class CreateStepFour extends IDialog implements MouseListener {
             jButtonPrevious.setBounds(new java.awt.Rectangle(370, 330, 90, 20));\r
             jButtonPrevious.setText("Previous");\r
             jButtonPrevious.addMouseListener(this);\r
-            jButtonPrevious.setVisible(false);\r
+            jButtonPrevious.setVisible(true);\r
         }\r
         return jButtonPrevious;\r
     }\r
@@ -260,9 +260,6 @@ public class CreateStepFour extends IDialog implements MouseListener {
             getPreviousStep().dispose();\r
             this.setVisible(false);\r
             this.dispose();\r
-        } else if (e.getSource() == jButtonPrevious) {\r
-            stepThree.setVisible(true);\r
-            this.setVisible(false);\r
         } else if (e.getSource() == jButtonBrowser) {\r
             JFileChooser fc = new JFileChooser();\r
             fc.setAcceptAllFileFilterUsed(false);\r
@@ -274,6 +271,9 @@ public class CreateStepFour extends IDialog implements MouseListener {
                 this.jTextFieldSaveToFile.setText(Tools.addPathExt(fc.getSelectedFile().getPath(),\r
                                                                    DataType.RETURN_TYPE_FAR_SURFACE_AREA));\r
             }\r
+        } else if (e.getSource() == jButtonPrevious) {\r
+            this.setVisible(false);\r
+            stepThree.setVisible(true);\r
         }\r
     }\r
 \r
@@ -301,29 +301,6 @@ public class CreateStepFour extends IDialog implements MouseListener {
         return stepThree;\r
     }\r
 \r
-    /**\r
-     * This method initializes jTable  \r
-     *         \r
-     * @return javax.swing.JTable      \r
-     */\r
-    //  private JTable getJTable() {\r
-    //    if (jTable == null) {\r
-    //      jTable = new JTable();\r
-    //      model = new PartialTableModel();\r
-    //      jTable = new JTable(model);\r
-    //      jTable.setRowHeight(20);\r
-    //      jTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r
-    //      model.addColumn("GUID");\r
-    //      model.addColumn("Version");\r
-    //      model.addColumn("Name");\r
-    //      \r
-    //      jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r
-    //    }\r
-    //    if (this.stepThree != null) {\r
-    //      prepareTable();\r
-    //    }\r
-    //    return jTable;\r
-    //  }\r
     public void prepareTable() {\r
         model.setRowCount(0);\r
 \r
index 1e95cc3..666082d 100644 (file)
@@ -237,11 +237,10 @@ public class CreateStepThree extends IDialog implements MouseListener {
 \r
             if (stepFour == null) {\r
                 stepFour = new CreateStepFour(this, true, this);\r
-                stepFour.setVisible(true);\r
-            } else {\r
-                stepFour.setVisible(true);\r
             }\r
+            \r
             this.setVisible(false);\r
+            stepFour.setVisible(true);\r
         } else if (e.getSource() == jButtonPrevious) {\r
             this.setVisible(false);\r
             stepTwo.setVisible(true);\r