Examples of OceanTheme


Examples of javax.swing.plaf.metal.OceanTheme

      if (theme.equals("Metal")) {
    if (subTheme.equals("DefaultMetal")) {
        MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    }
    else if (subTheme.equals("Ocean")) {
        MetalLookAndFeel.setCurrentTheme(new OceanTheme());
    }
    else {
        MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
    }
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

    };
    gtkItem.addActionListener(eventListener);
   
    eventListener = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        MetalLookAndFeel.setCurrentTheme(new OceanTheme());
        try {
        UIManager.setLookAndFeel(metalLnF);
        } catch(Exception exception) {}
        javax.swing.SwingUtilities.updateComponentTreeUI(Gui.this);
        }
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.