Package org.pushingpixels.substance.internal.contrib.randelshofer.quaqua

Examples of org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.VisualMargin


  protected void installDefaults(JSlider slider) {
    super.installDefaults(slider);
    focusInsets = new Insets(0, 0, 0, 0);
    slider.setOpaque(false);
    if (slider.getOrientation() == JSlider.HORIZONTAL) {
      slider.setBorder(new VisualMargin(0, 1, -1, 1));
    } else {
      slider.setBorder(new VisualMargin(0, 0, 0, 1));
    }
    // slider.setRequestFocusEnabled(QuaquaManager.getBoolean("Slider.requestFocusEnabled"));
    slider.setRequestFocusEnabled(true);
  }
View Full Code Here


            slider.repaint();
          }
        }
      } else if (propertyName.equals("Orientation")) {
        if (slider.getOrientation() == JSlider.HORIZONTAL) {
          slider.setBorder(new VisualMargin(0, 1, -1, 1));
        } else {
          slider.setBorder(new VisualMargin(0, 0, 0, 1));
        }
      }

      super.propertyChange(e);
    }
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.VisualMargin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.