1. Fix EDKT215: [Wizard] "Previous" button is not supported in step 4 of Create FAR

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2333 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hche10x 2007-01-30 01:31:32 +00:00
parent 963cbacb5f
commit e2249194ac
2 changed files with 6 additions and 30 deletions

View File

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

View File

@ -237,11 +237,10 @@ public class CreateStepThree extends IDialog implements MouseListener {
if (stepFour == null) { if (stepFour == null) {
stepFour = new CreateStepFour(this, true, this); stepFour = new CreateStepFour(this, true, this);
stepFour.setVisible(true);
} else {
stepFour.setVisible(true);
} }
this.setVisible(false); this.setVisible(false);
stepFour.setVisible(true);
} else if (e.getSource() == jButtonPrevious) { } else if (e.getSource() == jButtonPrevious) {
this.setVisible(false); this.setVisible(false);
stepTwo.setVisible(true); stepTwo.setVisible(true);