I am using this code to create a JList
:
JList list = new JList<String>(new String[] {"Hello", "World"});
The program compiles and runs as well, on Eclipse Juno, but when I try to open it using WindowBuilder, it gives the following error :
new JList<String>(new String[] {"Hello", "World"}) is not valid source for component creation, it references not existing constructor.
Now, since I am using Java 7(both JDK & JRE), this should not be an error.
Note : The rest of the program is correct.