posted 6 years ago
If you override the paintComponent method, you have to be careful. Call super.paintComponent(g), otherwise :
If you do not invoker super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in a non-opaque color. If you do not honor the opaque property you will likely see visual artifacts.