protected void initGlassPane() {
final Container glassPane = (Container) ((RootPaneContainer) anchestor).getGlassPane();
glassPane.setVisible(false);
glassPane.setLayout(null);
glassPane.addContainerListener(new ContainerAdapter() {
GlassPaneMouseAdapter adapter = new GlassPaneMouseAdapter((RootPaneContainer) anchestor);
public void componentAdded(ContainerEvent e) {
glassPane.setVisible(true);
if (glassPane.getComponentCount() == 1) {