If I instanciate the JCombobox-class of Swing and add String[][]-items to it - there is no problem except that I get the following warning:
JComboBox is a raw type. References to generic type JComboBox should be parametirized.
Well - I parameterize the object in the following manner
private JComboBox <String[][]> myComboBox = new JComboBox <String[][]> ();
It looks good at first because the warning dissappears, but I get an error when I want to add items from the String[][]-object
myComboBox.addItem(this.stringList[i][1]);
errormessage:
*the method addItem(String[][]) in the type JComboBox <String[][]> is not applicable for the arguments (String).*
What did I do wrong and how do I solve it?
By the way - if you have time to answer more - Is there a danger/drawback using rawtypes?