~boginw/tapaal/multiplayer

« back to all changes in this revision

Viewing changes to src/dk/aau/cs/gui/components/NonsearchableJComboBox.java

  • Committer: Bogi Napoleon Wennerstrøm
  • Date: 2020-04-08 13:12:38 UTC
  • mfrom: (998.2.361 testbranch)
  • Revision ID: bogi.wennerstrom@gmail.com-20200408131238-6daa9ocph3zgx1ag
merged ~yrke changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
//As the javax.swing.plaf.basic.BasicComboBoxUI.Handler class is a private nested class, in the javax.swing.plaf.basic.BasicComboBoxUI class, 
13
13
//it's not possible to use "instanceof" to do the test.
14
14
//Therefore the toString of the keylistener is used.
15
 
public class NonsearchableJComboBox extends JComboBox {
 
15
public class NonsearchableJComboBox<E> extends JComboBox<E> {
16
16
 
17
17
        private static final long serialVersionUID = -5796892375680580143L;
18
18
 
26
26
                removeKeyListener();
27
27
        }
28
28
 
29
 
        public NonsearchableJComboBox(Object[] items) {
 
29
        public NonsearchableJComboBox(E[] items) {
30
30
                super(items);
31
31
                removeKeyListener();
32
32
        }
33
33
 
34
 
        public NonsearchableJComboBox(Vector<?> items) {
 
34
        public NonsearchableJComboBox(Vector<E> items) {
35
35
                super(items);
36
36
                removeKeyListener();
37
37
        }