enableActions();
String propName = evt.getPropertyName(); if (propName.equals("closable")) { if (evt.getNewValue().equals(Boolean.TRUE)) closeButton.setVisible(true); else closeButton.setVisible(false); } else if (propName.equals("iconifiable")) { if (evt.getNewValue().equals(Boolean.TRUE)) iconButton.setVisible(true); else iconButton.setVisible(false); } else if (propName.equals("maximizable")) { if (evt.getNewValue().equals(Boolean.TRUE)) maxButton.setVisible(true); else maxButton.setVisible(false); }
    public void propertyChange(PropertyChangeEvent evt)    {      // The title and frameIcon are taken care of during painting time.      // The only other thing this will care about are the "is----izable"      // properties. So we call enable actions to properly handle the       // buttons and menu items for us.      enableActions();    }