posted 22 years ago
To remove an actual component you would have to call remove( button ) and then call validate(), both on the JPanel (or other container) that holds the button.
Since a line isn't a component, but can only be painted on a component, you'll have to handle that in whatever component is painting the line on itself...
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.