Remove unused Swing components.