Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Redraw issues with Java Swing Applet

843806Aug 2 2007 — edited Aug 2 2007
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2007
Added on Aug 2 2007
5 comments
140 views