diff --git a/app/src/processing/app/AbstractMonitor.java b/app/src/processing/app/AbstractMonitor.java index def9fe57e..65719c04c 100644 --- a/app/src/processing/app/AbstractMonitor.java +++ b/app/src/processing/app/AbstractMonitor.java @@ -24,7 +24,6 @@ public abstract class AbstractMonitor extends JFrame implements MessageConsumer protected JCheckBox autoscrollBox; protected JComboBox lineEndings; protected JComboBox serialRates; - protected int serialRate; public AbstractMonitor(String title) { super(title); @@ -110,8 +109,6 @@ public abstract class AbstractMonitor extends JFrame implements MessageConsumer for (int i = 0; i < serialRateStrings.length; i++) serialRates.addItem(serialRateStrings[i] + " " + _("baud")); - serialRate = Preferences.getInteger("serial.debug_rate"); - serialRates.setSelectedItem(serialRate + " " + _("baud")); serialRates.setMaximumSize(serialRates.getMinimumSize()); pane.add(autoscrollBox); diff --git a/app/src/processing/app/SerialMonitor.java b/app/src/processing/app/SerialMonitor.java index 9e95c91c8..21eec7785 100644 --- a/app/src/processing/app/SerialMonitor.java +++ b/app/src/processing/app/SerialMonitor.java @@ -24,6 +24,8 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; +import static processing.app.I18n._; + public class SerialMonitor extends AbstractMonitor { private final String port; @@ -35,6 +37,8 @@ public class SerialMonitor extends AbstractMonitor { this.port = port; + serialRate = Preferences.getInteger("serial.debug_rate"); + serialRates.setSelectedItem(serialRate + " " + _("baud")); onSerialRateChange(new ActionListener() { public void actionPerformed(ActionEvent event) { String wholeString = (String) serialRates.getSelectedItem();