Commit e9240129 authored by Eric Seigne's avatar Eric Seigne
Browse files

ui design enhance: input o2 before helium such as in real life

parent a3276a56
......@@ -78,8 +78,8 @@ public class GasDialog extends JDialog
// Create components
this.setTitle( MvplanInstance.getMvplan().getResource("mvplan.gui.GasDialog.title") );
labelHe.setText(MvplanInstance.getMvplan().getResource("mvplan.helium.shortText")+ "%");
labelO2.setText(MvplanInstance.getMvplan().getResource("mvplan.oxygen.shortText")+ "%");
labelHe.setText(MvplanInstance.getMvplan().getResource("mvplan.helium.shortText")+ "%");
labelMod.setText(MvplanInstance.getMvplan().getResource("mvplan.mod.shortText"));
okButton.setText(MvplanInstance.getMvplan().getResource("mvplan.gui.GasDialog.okButton.text"));
cancelButton.setText(MvplanInstance.getMvplan().getResource("mvplan.gui.GasDialog.cancelButton.text"));
......@@ -87,10 +87,10 @@ public class GasDialog extends JDialog
labelPpO2.setLabelFor(ppO2Slider);
labelHe.setHorizontalAlignment(SwingConstants.RIGHT);
labelHe.setLabelFor(inputHe);
labelO2.setHorizontalAlignment(SwingConstants.RIGHT);
labelO2.setLabelFor(inputO2);
labelHe.setHorizontalAlignment(SwingConstants.RIGHT);
labelHe.setLabelFor(inputHe);
labelMod.setHorizontalAlignment(SwingConstants.RIGHT);
labelMod.setLabelFor(inputMod);
labelPpO2.setHorizontalAlignment(SwingConstants.CENTER);
......@@ -100,10 +100,10 @@ public class GasDialog extends JDialog
cancelButton.setActionCommand("cancel");
fieldPanel.setLayout(new GridLayout(3,2));
fieldPanel.add(labelHe);
fieldPanel.add(inputHe);
fieldPanel.add(labelO2);
fieldPanel.add(inputO2);
fieldPanel.add(labelHe);
fieldPanel.add(inputHe);
fieldPanel.add(labelMod);
fieldPanel.add(inputMod);
fieldPanel.setPreferredSize(new Dimension(80,100));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment