File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/scijava/ui/swing/widget Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public void set(final WidgetModel model) {
84
84
final ButtonGroup buttonGroup = new ButtonGroup ();
85
85
final JPanel buttonPanel = new JPanel ();
86
86
buttonPanel .setLayout (new BoxLayout (buttonPanel , getBoxAxis (model )));
87
- radioButtons = new ArrayList <JRadioButton >(items .length );
87
+ radioButtons = new ArrayList <>(items .length );
88
88
89
89
for (final String item : items ) {
90
90
final JRadioButton radioButton = new JRadioButton (item );
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public class SwingObjectWidget extends SwingInputWidget<Object> implements
51
51
ActionListener , ObjectWidget <JPanel >
52
52
{
53
53
54
- private JComboBox comboBox ;
54
+ private JComboBox < Object > comboBox ;
55
55
56
56
// -- ActionListener methods --
57
57
@@ -73,7 +73,7 @@ public Object getValue() {
73
73
public void set (final WidgetModel model ) {
74
74
super .set (model );
75
75
76
- comboBox = new JComboBox (model .getObjectPool ().toArray ());
76
+ comboBox = new JComboBox <> (model .getObjectPool ().toArray ());
77
77
setToolTip (comboBox );
78
78
getComponent ().add (comboBox );
79
79
comboBox .addActionListener (this );
You can’t perform that action at this time.
0 commit comments