Click to See Complete Forum and Search --> : How do I force JPanels&JFrames to refresh?


Splatt
September 14th, 2000, 12:00 PM
The subject line basically says it all. How do I force a JPanel and a JFrame to refresh (redraw and display all visible components)?

Thanks!


"There's nothing more dangerous than a resourceful idiot." ---Dilbert

mjpell
September 14th, 2000, 01:07 PM
try this:


panel.update(panel.getGraphics());
frame.update(frame.getGraphics());




at least it worked for some of my refresh problems.