I'm going to create a custom 'widget', and I was going to extend JPanel. The more I read though, the more I'm curious, what's the difference between JComponent and JPanel? Is there any advantage to using JPanel or is it just convention?
posted 12 years ago
JPanel is often opaque, depending on LAF (GTK+ is advertized as non–opaque); JComponent is non–opaque.