Ignore:
Timestamp:
2014-07-14T04:18:06+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix compilation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/panels/PanelLit.java

    r29894 r30532  
    3939        };
    4040        public JLabel visibilityLabel;
    41         public JComboBox visibilityBox;
     41        public JComboBox<String> visibilityBox;
    4242        public EnumMap<Vis, Integer> visibilities = new EnumMap<Vis, Integer>(Vis.class);
    4343        private ActionListener alVisibility = new ActionListener() {
     
    7979        };
    8080        public JLabel categoryLabel;
    81         public JComboBox categoryBox;
     81        public JComboBox<String> categoryBox;
    8282        public EnumMap<Lit, Integer> categories = new EnumMap<Lit, Integer>(Lit.class);
    8383        private ActionListener alCategory = new ActionListener() {
     
    115115        };
    116116        public JLabel exhibitionLabel;
    117         public JComboBox exhibitionBox;
     117        public JComboBox<String> exhibitionBox;
    118118        public EnumMap<Exh, Integer> exhibitions = new EnumMap<Exh, Integer>(Exh.class);
    119119        private ActionListener alExhibition = new ActionListener() {
     
    209209                categoryLabel.setBounds(new Rectangle(185, 0, 165, 20));
    210210                add(categoryLabel);
    211                 categoryBox = new JComboBox();
     211                categoryBox = new JComboBox<>();
    212212                categoryBox.setBounds(new Rectangle(185, 20, 165, 20));
    213213                add(categoryBox);
     
    235235                visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20));
    236236                add(visibilityLabel);
    237                 visibilityBox = new JComboBox();
     237                visibilityBox = new JComboBox<>();
    238238                visibilityBox.setBounds(new Rectangle(185, 60, 165, 20));
    239239                add(visibilityBox);
     
    247247                exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20));
    248248                add(exhibitionLabel);
    249                 exhibitionBox = new JComboBox();
     249                exhibitionBox = new JComboBox<>();
    250250                exhibitionBox.setBounds(new Rectangle(280, 100, 70, 20));
    251251                add(exhibitionBox);
Note: See TracChangeset for help on using the changeset viewer.