I have a class such that it extends a Swing component such as:
public class MyCustomClass extends JComboBox
The problem here is that I get the compiler warning:
JComboBox is a raw type. References to generic type JComboBox should be parameterized
I'm not sure to parameterize the JComboBox so that whatever class further extends from here can use any type of object. I've tried to put it as extends JComboBox, and so on, but that doesn't work. Any suggestions would be appreciated.
Jxxxclasses (except for custom painting, I cannot think of any valid use case). They were designed to be used, and have API to customize them. And not extending them would solve your problem as well