コード例 #1
0
  /** Uninstalls the UI delegate for the specified component */
  public void uninstallUI(JComponent c) {
    frame = (JInternalFrame) c;

    Container cont = ((JInternalFrame) (c)).getContentPane();
    if (cont instanceof JComponent) {
      JComponent content = (JComponent) cont;
      if (content.getBorder() == handyEmptyBorder) {
        content.setBorder(null);
      }
    }
    super.uninstallUI(c);
  }
コード例 #2
0
  /** Installs the UI delegate for the specified component */
  public void installUI(JComponent c) {
    super.installUI(c);

    Object paletteProp = c.getClientProperty(IS_PALETTE);
    if (paletteProp != null) {
      setPalette(((Boolean) paletteProp).booleanValue());
    }

    Container content = frame.getContentPane();
    stripContentBorder(content);
    // c.setOpaque(false);
  }
コード例 #3
0
 /** Uninstalls any listeners registered with the associated JInternalFrame */
 protected void uninstallListeners() {
   frame.removePropertyChangeListener(metalPropertyChangeListener);
   super.uninstallListeners();
 }
コード例 #4
0
 /** Uninstalls any components installed for the associated JInternalFrame */
 protected void uninstallComponents() {
   titlePane = null;
   super.uninstallComponents();
 }
コード例 #5
0
 /** Installs the property listener with the associated JInternalFrame */
 protected void installListeners() {
   super.installListeners();
   frame.addPropertyChangeListener(metalPropertyChangeListener);
 }