how to remove all components from layeredPane java code example
Example 1: how to remove all components from layeredPane java
panel.revalidate();
panel.repaint();
Example 2: how to remove all components from layeredPane java
void remove(int index)
Example 3: how to remove all components from layeredPane java
remove(Component comp)
Example 4: how to remove all components from layeredPane java
removeAll()