Good luck, and post again if you have troubles. For what its worth, I've written some pretty comprehensive painting implementations, and the times I witnessed flickering it was a simple...
Type: Posts; User: copeg
Good luck, and post again if you have troubles. For what its worth, I've written some pretty comprehensive painting implementations, and the times I witnessed flickering it was a simple...
Really? You replaced all the code in your paint method with the one posted above? That works on my end.
1) A JPanel honors the color in the setBackground method
2) Calling the super.paint or...
Actually, I stand corrected. I misread your code in a few places - I apologize.
For point a, this wasn't directly related to your problem. Just general advice - I speak from experience when I...
Some recommendations a) I wouldn't recommend using a null layout. b) Override paintComponent, not paint (there is a big difference when trying to add components to the component being painted,...