Exemplo n.º 1
0
  /** Installs the appropriate <code>Border</code> onto the <code>JRootPane</code>. */
  void installBorder(JRootPane root) {
    int style = root.getWindowDecorationStyle();

    if (style == JRootPane.NONE) {
      LookAndFeel.uninstallBorder(root);
    } else {
      LookAndFeel.installBorder(root, borderKeys[style]);
    }
  }
Exemplo n.º 2
0
 /** Removes any border that may have been installed. */
 private void uninstallBorder(JRootPane root) {
   LookAndFeel.uninstallBorder(root);
 }