Package javax.swing.plaf.metal

Examples of javax.swing.plaf.metal.DefaultMetalTheme$WindowsFontDelegate


  try {
      UIManager.setLookAndFeel(lookAndFeel);
      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());
    }

    UIManager.setLookAndFeel(new MetalLookAndFeel());
      }
  }
View Full Code Here


        mi.setSelected(true); // This is the default theme

        createThemesMenuItem(themesMenu, "ThemesMenu.steel_label",
                             "ThemesMenu.steel_mnemonic",
                             "ThemesMenu.steel_accessible_description",
                             new DefaultMetalTheme());

  createThemesMenuItem(themesMenu, "ThemesMenu.aqua_label", "ThemesMenu.aqua_mnemonic",
           "ThemesMenu.aqua_accessible_description", new AquaTheme());

  createThemesMenuItem(themesMenu, "ThemesMenu.charcoal_label", "ThemesMenu.charcoal_mnemonic",
View Full Code Here

      };
    oceanItem.addActionListener(eventListener);
   
    eventListener = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
        try {
          UIManager.setLookAndFeel(metalLnF);
        }
        catch (Exception exp) {}
        javax.swing.SwingUtilities.updateComponentTreeUI(Gui.this);
View Full Code Here

TOP

Related Classes of javax.swing.plaf.metal.DefaultMetalTheme$WindowsFontDelegate

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.