Silence a compiler warning regarding generics
This commit is contained in:
1 parent
252ebe0569
commit
72074b9715
1 file changed
+2
-2
@@ -113,7 +113,7 @@ public class Simulator {
|
|||||||
private JButton runStopButton;
|
private JButton runStopButton;
|
||||||
private JButton stepButton;
|
private JButton stepButton;
|
||||||
private JButton resetButton;
|
private JButton resetButton;
|
||||||
private JComboBox stepCountBox;
|
private JComboBox<String> stepCountBox;
|
||||||
|
|
||||||
private JFileChooser fileChooser;
|
private JFileChooser fileChooser;
|
||||||
private PreferencesDialog preferences;
|
private PreferencesDialog preferences;
|
||||||
@@ -158,7 +158,7 @@ public class Simulator {
|
|||||||
stepButton = new JButton("Step");
|
stepButton = new JButton("Step");
|
||||||
resetButton = new JButton("Reset");
|
resetButton = new JButton("Reset");
|
||||||
|
|
||||||
stepCountBox = new JComboBox(STEPS);
|
stepCountBox = new JComboBox<String>(STEPS);
|
||||||
stepCountBox.addActionListener(new ActionListener() {
|
stepCountBox.addActionListener(new ActionListener() {
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
public void actionPerformed(ActionEvent actionEvent) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user