Package javax.swing.plaf

Examples of javax.swing.plaf.ColorUIResource


    {
      return new ColorUIResource(0, 0, 31);
    }
    public ColorUIResource getWindowTitleForeground()
    {
      return new ColorUIResource(0, 0, 32);
    }
View Full Code Here


    {
      return new ColorUIResource(0, 0, 32);
    }
    public ColorUIResource getWindowTitleInactiveBackground()
    {
      return new ColorUIResource(0, 0, 33);
    }
View Full Code Here

    {
      return new ColorUIResource(0, 0, 33);
    }
    public ColorUIResource getWindowTitleInactiveForeground()
    {
      return new ColorUIResource(0, 0, 34);
    }
View Full Code Here

    {
      return new ColorUIResource(0, 0, 34);
    }
    public ColorUIResource getInactiveControlTextColor()
    {
      return new ColorUIResource(0, 0, 35);
    }
View Full Code Here

  
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness) {
  MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    ColorUIResource c = MetalLookAndFeel.getWindowTitleInactiveBackground();
    harness.check(c, new ColorUIResource(new Color(204, 204, 204)));

    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
      public ColorUIResource getWindowTitleInactiveBackground() {
        return new ColorUIResource(Color.red);
      }
    });

    c = MetalLookAndFeel.getWindowTitleInactiveBackground();
    harness.check(c, new ColorUIResource(Color.red))
   
    // reset the theme so that other tests won't be affected
    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());

  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness) {
  MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    ColorUIResource c = MetalLookAndFeel.getControlShadow();
    harness.check(c, new ColorUIResource(new Color(153, 153, 153)));

    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
      public ColorUIResource getControlShadow() {
        return new ColorUIResource(Color.red);
      }
    });

    c = MetalLookAndFeel.getControlShadow();
    harness.check(c, new ColorUIResource(Color.red));
   
    // reset the theme so that other tests won't be affected
    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());

  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness) {
  MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    ColorUIResource c = MetalLookAndFeel.getPrimaryControlHighlight();
    harness.check(c, new ColorUIResource(Color.white));

    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
      public ColorUIResource getPrimaryControlHighlight() {
        return new ColorUIResource(Color.red);
      }
    });

    c = MetalLookAndFeel.getPrimaryControlHighlight();
    harness.check(c, new ColorUIResource(Color.red))
   
    // reset the theme so that other tests won't be affected
    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());

  }
View Full Code Here

  class TestTheme extends DefaultMetalTheme
  {
    protected ColorUIResource getSecondary3()
    {
      return new ColorUIResource(Color.red);
    }
View Full Code Here

  
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness) {
  MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    ColorUIResource c = MetalLookAndFeel.getSeparatorBackground();
    harness.check(c, new ColorUIResource(Color.white));

    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
      public ColorUIResource getSeparatorBackground() {
        return new ColorUIResource(Color.red);
      }
    });

    c = MetalLookAndFeel.getSeparatorBackground();
    harness.check(c, new ColorUIResource(Color.red))

    // reset the theme so that other tests won't be affected
    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
  }
View Full Code Here

  
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness) {
  MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    ColorUIResource c = MetalLookAndFeel.getSystemTextColor();
    harness.check(c, new ColorUIResource(Color.black));

    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme() {
      public ColorUIResource getSystemTextColor() {
        return new ColorUIResource(Color.red);
      }
    });

    c = MetalLookAndFeel.getSystemTextColor();
    harness.check(c, new ColorUIResource(Color.red))
   
    // reset the theme so that other tests won't be affected
    MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());

  }
View Full Code Here

TOP

Related Classes of javax.swing.plaf.ColorUIResource

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.