So I know that you can add an object in java to something through something like this:
topPanel.add(something);
However, how would I do this with taking something out of the topPanel. Something that would basically mean the following:
topPanel.takeAway(winCounter);
Is there a way to do this, and what is the proper syntax of it?
Use the remove() method