Package javax.swing.plaf.metal

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


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

    };
    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

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.