My JFrame does not refresh!!
Posted on 2004-09-12
I currently have problems refreshing my JFrame. It gets blurred when I move some other windows over it.
mainFrame.getContentPane().add("The object I want to add);
I wonder whether it is correct.
When I set super.paint(), my object will refresh BUT the second object which I draw using the same method as above will not be shown.
What can i do?
I tried using paintComponent and repaint but it is no use.