Пример #1
0
 /**
  * Installs the UI.
  *
  * @param c
  */
 @Override
 public void installUI(JComponent c) {
   super.installUI(c);
   c.setOpaque(false);
   //  BasicBorders$SplitPaneBorder paints gray border
   //  resulting in a 2pt border for the left/right components
   //  but results in 1pt gray line on top/button of divider.
   //  Still, a 1 pt shaddow light gay line is painted
   c.setBorder(null);
 } //  installUI
Пример #2
0
  /**
   * Installs UI in the specified component.
   *
   * @param c component for this UI
   */
  @Override
  public void installUI(final JComponent c) {
    super.installUI(c);

    // Default settings
    SwingUtils.setOrientation(splitPane);
    splitPane.setOpaque(false);
    splitPane.setBorder(null);
    splitPane.setDividerSize(6);

    // Updating border
    updateBorder();

    // Orientation change listener
    propertyChangeListener =
        new PropertyChangeListener() {
          @Override
          public void propertyChange(final PropertyChangeEvent evt) {
            updateBorder();
          }
        };
    splitPane.addPropertyChangeListener(
        WebLookAndFeel.ORIENTATION_PROPERTY, propertyChangeListener);
  }