Examples of OceanTheme


Examples of javax.swing.plaf.metal.OceanTheme

  public MLG_GUI() {

    var.UsingGUI = true;

    // Program-wide UI stuff here...
    MetalLookAndFeel.setCurrentTheme(new OceanTheme());
    try {
      UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (final Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

                return buffer;
            }
        });

        try {
            MetalLookAndFeel.setCurrentTheme(new OceanTheme());
            UIManager.setLookAndFeel(new MetalLookAndFeel());
        } catch (Exception x) {
            log.warn("Look And Feel not found: ", x);
        }
        // Create the desktop
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

        JMenuItem ocean_theme = new JMenuItem("Metal Ocean");
        lfMenu.add(ocean_theme);
        ocean_theme.addActionListener(new SetLFAction("javax.swing.plaf.metal.MetalLookAndFeel") {
            public void actionPerformed(ActionEvent e) {
                MetalLookAndFeel.setCurrentTheme(new OceanTheme());
                super.actionPerformed(e);
            }
        });
        settingsMenu.add(desktopColorMI = new JMenuItem("Desktop color"));
        final JCheckBoxMenuItem desktopImage = new JCheckBoxMenuItem("Desktop image");
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

public class addCustomEntriesToTable implements Testlet
{
  public void test(TestHarness harness)
  {
    UIDefaults defaults = new UIDefaults();
    OceanTheme theme = new OceanTheme();
    theme.addCustomEntriesToTable(defaults);
   
    harness.check(defaults.get("Button.disabledToolBarBorderBackground"),
            new ColorUIResource(204, 204, 204));
    harness.check(defaults.get("Button.gradient"), Arrays.asList(new Object[]
        {new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243),
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

        } catch (NullPointerException e) {
            System.out.println(e);
        }

        // build an array of themes
        MetalTheme[] themes = { new OceanTheme(),
            new DefaultMetalTheme(),
            new GreenMetalTheme(),
            new AquaMetalTheme(),
            new KhakiMetalTheme(),
            new DemoMetalTheme(),
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

  if (actionName.equals("Metal-default-theme")) {
      lafName = "javax.swing.plaf.metal.MetalLookAndFeel";
      MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
  } else if (actionName.equals("Metal-ocean-theme")) {
      lafName = "javax.swing.plaf.metal.MetalLookAndFeel";
      MetalLookAndFeel.setCurrentTheme(new OceanTheme());
  } else if (actionName.equals("System")) {
      lafName = UIManager.getSystemLookAndFeelClassName();
  } else if (actionName.equals("CDE/Motif")) {
      lafName = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
  } else if (actionName.equals("GTK")) {
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

      if (LOOKANDFEEL.equals("Metal"))
      {
        if (THEME.equals("DefaultMetal"))
          MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
        else if (THEME.equals("Ocean"))
          MetalLookAndFeel.setCurrentTheme(new OceanTheme());

        UIManager.setLookAndFeel(new MetalLookAndFeel());
      }
    } catch (Exception e)
    {
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

      if (LOOKANDFEEL.equals("Metal"))
      {
        if (THEME.equals("DefaultMetal"))
          MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
        else if (THEME.equals("Ocean"))
          MetalLookAndFeel.setCurrentTheme(new OceanTheme());

        UIManager.setLookAndFeel(new MetalLookAndFeel());
      }
    } catch (Exception e)
    {
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

  // *** now back to adding color/font themes to the theme menu
        mi = createThemesMenuItem(themesMenu, "ThemesMenu.ocean_label",
                                              "ThemesMenu.ocean_mnemonic",
                                              "ThemesMenu.ocean_accessible_description",
                                              new OceanTheme());
        mi.setSelected(true); // This is the default theme

        createThemesMenuItem(themesMenu, "ThemesMenu.steel_label",
                             "ThemesMenu.steel_mnemonic",
                             "ThemesMenu.steel_accessible_description",
View Full Code Here

Examples of javax.swing.plaf.metal.OceanTheme

            java.util.logging.Logger.getLogger(LCMC.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(LCMC.class.getName()).log(Level.SEVERE, null, ex);
        }
        MetalLookAndFeel.setCurrentTheme(
                new OceanTheme() {
                    /** e.g. arrows on split pane... */
                    @Override
                    protected ColorUIResource getPrimary1() {
                        return new ColorUIResource(ClusterBrowser.STATUS_BACKGROUND);
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.