We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2d6e1f commit dba9038Copy full SHA for dba9038
src/main/java/org/scijava/ui/swing/widget/SwingChoiceWidget.java
@@ -55,7 +55,7 @@ public class SwingChoiceWidget extends SwingInputWidget<String> implements
55
56
public static final double PRIORITY = Priority.NORMAL_PRIORITY;
57
58
- private JComboBox comboBox;
+ private JComboBox<String> comboBox;
59
60
// -- ActionListener methods --
61
@@ -79,7 +79,7 @@ public void set(final WidgetModel model) {
79
80
final String[] items = model.getChoices();
81
82
- comboBox = new JComboBox(items);
+ comboBox = new JComboBox<>(items);
83
setToolTip(comboBox);
84
getComponent().add(comboBox);
85
comboBox.addActionListener(this);
0 commit comments