~yrke/tapaal/slimImageIcons-2

« back to all changes in this revision

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

  • Committer: Jiri Srba
  • Date: 2020-04-28 19:15:28 UTC
  • mfrom: (998.2.376 testbranch)
  • Revision ID: srba@cs.aau.dk-20200428191528-3xxjqa1r4jcob5ur
merged in lp:~yrke/tapaal/testbranch doing majour refactoring of the GUI

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
        }