From 1215a8c2886f480ba7ffec1b3ec18d96bff3e193 Mon Sep 17 00:00:00 2001 From: kruland2607 Date: Fri, 19 Oct 2012 14:33:19 -0500 Subject: [PATCH] Preselect the deployment event combo box and use localized strings for button names. --- .../flightconfiguration/SelectDeploymentConfigDialog.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/net/sf/openrocket/gui/dialogs/flightconfiguration/SelectDeploymentConfigDialog.java b/core/src/net/sf/openrocket/gui/dialogs/flightconfiguration/SelectDeploymentConfigDialog.java index f3409385e..fa96d530e 100644 --- a/core/src/net/sf/openrocket/gui/dialogs/flightconfiguration/SelectDeploymentConfigDialog.java +++ b/core/src/net/sf/openrocket/gui/dialogs/flightconfiguration/SelectDeploymentConfigDialog.java @@ -48,6 +48,7 @@ public class SelectDeploymentConfigDialog extends JDialog { panel.add(new JLabel(FlightConfigurationDialog.trans.get("ParachuteCfg.lbl.Deploysat")), ""); final JComboBox event = new JComboBox(new BasicEnumModel(DeployEvent.class)); + event.setSelectedItem( newConfiguration.getDeployEvent() ); panel.add(event, "spanx 3, growx, wrap"); // ... and delay @@ -95,7 +96,7 @@ public class SelectDeploymentConfigDialog extends JDialog { // Set the value of the combo box at the end to take advantage of the action listener above. event.setSelectedItem( newConfiguration.getDeployEvent() ); - JButton okButton = new JButton("Ok"); + JButton okButton = new JButton(FlightConfigurationDialog.trans.get("button.ok")); okButton.addActionListener( new ActionListener() { @Override @@ -122,7 +123,7 @@ public class SelectDeploymentConfigDialog extends JDialog { panel.add( okButton ); - JButton cancel = new JButton("Cancel"); + JButton cancel = new JButton(FlightConfigurationDialog.trans.get("button.cancel")); cancel.addActionListener( new ActionListener() { @Override