The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

removeALL()

Posted by koval on March 26, 2001 at 2:59 AM

If it works after minimizing, it makes me wonder if you forget to repaint() changed component.

> We are trying to have an applet display different questions and answer sets in a JPanel when a "next" button is pushed. We are using panelName.removeAll() to clear, then adding a different set of Q and A's, then validating. It does not appear to remove the components we have asked it to remove, just adds the new set on top. However, if the screen is minimized and then maximized, the components are removed. Given that it works after minimizing, it makes us wonder if it could be a bug in java. Has anyone had experience with this situation?






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us