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) {
8484 final ButtonGroup buttonGroup = new ButtonGroup ();
8585 final JPanel buttonPanel = new JPanel ();
8686 buttonPanel .setLayout (new BoxLayout (buttonPanel , getBoxAxis (model )));
87- radioButtons = new ArrayList <JRadioButton >(items .length );
87+ radioButtons = new ArrayList <>(items .length );
8888
8989 for (final String item : items ) {
9090 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
5151 ActionListener , ObjectWidget <JPanel >
5252{
5353
54- private JComboBox comboBox ;
54+ private JComboBox < Object > comboBox ;
5555
5656 // -- ActionListener methods --
5757
@@ -73,7 +73,7 @@ public Object getValue() {
7373 public void set (final WidgetModel model ) {
7474 super .set (model );
7575
76- comboBox = new JComboBox (model .getObjectPool ().toArray ());
76+ comboBox = new JComboBox <> (model .getObjectPool ().toArray ());
7777 setToolTip (comboBox );
7878 getComponent ().add (comboBox );
7979 comboBox .addActionListener (this );
You can’t perform that action at this time.
0 commit comments