Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse design view tool fails when using generics(Failure of Eclipse design view)
Eclipse design view tool fails when using generics [message #1826054] Fri, 17 April 2020 19:13 Go to next message
J Mann is currently offline J MannFriend
Messages: 1
Registered: April 2020
Junior Member
I am using Eclipse for a custom JDialog extension and want to add a JComboBox. Using Java 8.

I initially used
String[] foo ={"first","second"};
JComboBox jbo = new JComboBox(foo);

But this generates warnings about using raw JComboBox.
So I changed to
JComboBox<String> jbo = JComboBox<String>(foo);

This compiles and eliminates the warnings, but when I try to look at result with design view if fails with:

"new JComboBox<String>(tabls) is not valid source for component creation, it references not existing constructor. "

which isn't even proper grammar.

Eclipse is set to use Java 8. Anyone have an idea of what the problem might be?

Re: Eclipse design view tool fails when using generics [message #1826072 is a reply to message #1826054] Sat, 18 April 2020 09:49 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1828
Registered: July 2009
Senior Member
I guess you are using WindowBuilder? Please ask in https://www.eclipse.org/forums/index.php/f/214/
Previous Topic:Enum Declaration not found in CompilationUnit
Next Topic:Is IntelliJ faster than Eclipse?
Goto Forum:
  


Current Time: Tue Oct 20 07:19:59 GMT 2020

Powered by FUDForum. Page generated in 0.01338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top