Package test.check

Examples of test.check.SampleFrame$TraitChangeListener


    // create the frame and set the icon image
    GuiActionRunner.execute(new GuiTask() {
      @Override
      protected void executeInEDT() throws Throwable {
        sf = new SampleFrame(false);
        sf.setIconImage(SubstanceImageCreator.getColorSchemeImage(null,
            new ImageIcon(SkinRobot.class.getClassLoader()
                .getResource(
                    "test/resource/image-x-generic.png")),
            SubstanceLookAndFeel.getCurrentSkin(sf.getRootPane())
View Full Code Here


    // create the frame and set the icon image
    GuiActionRunner.execute(new GuiTask() {
      @Override
      protected void executeInEDT() throws Throwable {
        sf = new SampleFrame(false);
        sf.setIconImage(SubstanceImageCreator.getColorSchemeImage(null,
            new ImageIcon(SkinRobot.class.getClassLoader()
                .getResource(
                    "test/resource/image-x-generic.png")),
            SubstanceLookAndFeel.getCurrentSkin(sf.getRootPane())
View Full Code Here

    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        SubstanceLookAndFeel.setSkin(new RobotDefaultDarkSkin(
            new CharcoalColorScheme()));
        JFrame.setDefaultLookAndFeelDecorated(true);
        SampleFrame sf = new SampleFrame(false);
        sf.setSize(315, 245);
        sf.setLocationRelativeTo(null);
        sf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        sf.setVisible(true);
      }
    });
  }
View Full Code Here

        int x = maxBounds.x;
        for (int i = 0; i < 4; i++) {
          int y = maxBounds.y;
          for (int j = 0; j < 3; j++) {
            SampleFrame skinFrame = new SampleFrame(false);
            skinFrame.getRootPane().putClientProperty(
                SubstanceLookAndFeel.SKIN_PROPERTY,
                skinGrid[i][j]);
            SwingUtilities.updateComponentTreeUI(skinFrame);
            skinFrame.setBounds(x, y, maxBounds.width / 4,
                maxBounds.height / 3);
            skinFrame.setVisible(true);
            skinFrame
                .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            y += maxBounds.height / 3;
          }
          x += maxBounds.width / 4;
        }
View Full Code Here

        int x = maxBounds.x;
        for (int i = 0; i < 4; i++) {
          int y = maxBounds.y;
          for (int j = 0; j < 3; j++) {
            SampleFrame skinFrame = new SampleFrame();
            skinFrame.getRootPane().putClientProperty(
                SubstanceLookAndFeel.SKIN_PROPERTY,
                skinGrid[i][j]);
            SwingUtilities.updateComponentTreeUI(skinFrame);
            skinFrame.setBounds(x, y, maxBounds.width / 4,
                maxBounds.height / 3);
            skinFrame.setVisible(true);
            skinFrame
                .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            y += maxBounds.height / 3;
          }
          x += maxBounds.width / 4;
        }
View Full Code Here

    // create the frame and set the icon image
    GuiActionRunner.execute(new GuiTask() {
      @Override
      protected void executeInEDT() throws Throwable {
        sf = new SampleFrame();
        sf.setIconImage(SubstanceImageCreator.getColorSchemeImage(null,
            new ImageIcon(SkinRobot.class.getClassLoader()
                .getResource(
                    "test/resource/image-x-generic.png")),
            SubstanceLookAndFeel.getCurrentSkin(sf.getRootPane())
View Full Code Here

    // create the frame and set the icon image
    GuiActionRunner.execute(new GuiTask() {
      @Override
      protected void executeInEDT() throws Throwable {
        sf = new SampleFrame();
        sf.setIconImage(SubstanceImageCreator.getColorSchemeImage(null,
            new ImageIcon(SkinRobot.class.getClassLoader()
                .getResource(
                    "test/resource/image-x-generic.png")),
            SubstanceLookAndFeel.getCurrentSkin(sf.getRootPane())
View Full Code Here

TOP

Related Classes of test.check.SampleFrame$TraitChangeListener

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.