repaint();
calculateVisibility();
            public void internalFrameActivated(InternalFrameEvent e) {//               displayMessage("Internal frame activated", e);               activated = true;               repaint();            }