Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

can i delete objects from a panel withe out deleting panel?

+5 votes
asked Feb 13, 2015 in (Winter 14) by Rafael Rodriguez (100 points)

2 Answers

+1 vote
You could try using a panel.clear(); after your object shows up on the drawing panel. This will clear the panel of anything that is showing up, for instance some text for the user or objects, so that you may have new objects and text show up on a blank panel.
answered Feb 13, 2015 by Travis Miller (100 points)
0 votes
You could also just draw a box the same color as the background over whatever you want to get rid of.  It won't clear the whole screen (if you don't want it to) and you could keep segments of the screen up.
answered Feb 15, 2015 by Andy Smith (100 points)