Package javax.swing.plaf.metal

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


                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

        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

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

        } 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

  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

      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

      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

  // *** 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

            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

Related Classes of javax.swing.plaf.metal.OceanTheme

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.