Redraw issues with Java Swing Applet
843806Aug 2 2007 — edited Aug 2 2007I've written an applet that allows users to play a knockoff of the Boggle dice game.
During code execution, GUI elements are added to and removed from the contentpane.
I'm finding that the applet doesn't redraw itself correctly when items are added or removed from the content pane.
When I run the applet in the Applet Viewer, I can rectify this by resizing the window (even by a pixel), which causes everything to redraw, and redraw properly.
However, I want to host my applet in a browser, and when I do that, it won't be possible for the user to resize the host container, and my applet becomes useless.
Are there any known problems/solutions to this type of issue? I'm willing to share my source code with anyone who's willing to look at it.