Package javax.swing.plaf.metal

Examples of javax.swing.plaf.metal.MetalLookAndFeel


    harness.check(ui.getDisplaySize(), new Dimension(width, height));
   
    // restore a sane look and feel
    try
    {
      UIManager.setLookAndFeel(new MetalLookAndFeel());
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here


  private LookAndFeel metalLnf;

 
  public LookAndFeel getLookAndFeelInstance() {
    if (metalLnf == null) {
      metalLnf = new MetalLookAndFeel();
    }
    return metalLnf;
  }
View Full Code Here

    try {
      LookAndFeelFactory.installJideExtension();
    } catch (IllegalArgumentException e) {
      log.error("l&f incompatible with JIDE, trying metal: " + e.getMessage(), e);

      UIManager.setLookAndFeel(new MetalLookAndFeel());
      LookAndFeelFactory.installJideExtension();
    }

    ObjectConverterManager.initDefaultConverter();
    CellEditorManager.initDefaultEditor();
View Full Code Here

         * ; }
         */
      } catch (Throwable e) {
        log.error("cannot load l&f, trying metal: " + e.getMessage(), e);

        UIManager.setLookAndFeel(new MetalLookAndFeel());
      }
    } else {
      UIManager.setLookAndFeel(System.getProperty("swing.defaultlaf"));
    }

View Full Code Here

 
  /** Be�ll�tja a form kin�zet�t */
  public static void initLookAndFeel() throws Exception{
    LookAndFeel lf = UIManager.getLookAndFeel();
    if (lf instanceof MetalLookAndFeel) {
      MetalLookAndFeel mlf = (MetalLookAndFeel)lf;
     
      mlf.setCurrentTheme(new DefaultMetalTheme());
      UIManager.setLookAndFeel(mlf);
      UIManager.put("TextField.font",new Font("Arial",Font.BOLD,14));
      UIManager.put("PasswordField.font",new Font("Arial",Font.BOLD,14));
    }
  }
View Full Code Here

    public void setQSpinTheme() {
        mTheme = new QSpinTheme();
        MetalLookAndFeel.setCurrentTheme(mTheme);
        try {
            UIManager.setLookAndFeel(new MetalLookAndFeel());
            ((WrappedToolTipUI) WrappedToolTipUI.createUI(null)).setMaxWidth(200);
            UIManager.put("ToolTipUI", "com.qspin.qtaste.ui.tools.WrappedToolTipUI");
        } catch (UnsupportedLookAndFeelException ex) {
        }
    }
View Full Code Here

    public void setQSpinTheme() {
        mTheme = new QSpinTheme();
        MetalLookAndFeel.setCurrentTheme(mTheme);
        try {
            UIManager.setLookAndFeel(new MetalLookAndFeel());
        } catch (UnsupportedLookAndFeelException ex) {

        }
    }
View Full Code Here

      public void setQSpinTheme() {
          mTheme = new QSpinTheme();
          MetalLookAndFeel.setCurrentTheme(mTheme);
          try {
              UIManager.setLookAndFeel(new MetalLookAndFeel());
              //Toolkit toolkit = Toolkit.getDefaultToolkit();
              //double dWidth = Math.round((toolkit.getScreenSize().width*0.75)/3);
//              String sWdith = (new Double(dWidth)).toString();
              //int width = (int)dWidth;
              ((WrappedToolTipUI) WrappedToolTipUI.createUI(null)).setMaxWidth(200);
View Full Code Here

   {
      mTheme = new QSpinTheme();
      MetalLookAndFeel.setCurrentTheme(mTheme);
      try
      {
         UIManager.setLookAndFeel(new MetalLookAndFeel());
      }
      catch (UnsupportedLookAndFeelException ex)
      {
       
      }
View Full Code Here

      host = IConstants.DEFAULT_SERVER_HOST;
      port = IConstants.DEFAULT_SERVER_PORT;
    }

    try {
      UIManager.setLookAndFeel(new MetalLookAndFeel());
    } catch (UnsupportedLookAndFeelException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

TOP

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

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.