Yes, Maxpower1, you're right and I'm wrong... polymorphism is allowed... i meant multiple inheritance... sorry.
For what concern getValue and setValue I've used something like that in some program.
In the program I've specified some different JPanel with inside a JLabel, an input field and some...