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() not removing

Posted by Susan Orndorff on March 21, 2001 at 4:28 PM

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:
  • Answer Ratwinder Gill April 02, 2001 at 11:22 AM (0)
  • removeALL() koval March 26, 2001 at 2:59 AM (0)

Sponsored Links



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