private void installLaf(Object f, Method method) {
    try {

      /* lafClassName = UIManager.getSystemLookAndFeelClassName();

      String v = AsOptionMeta.getOptVal(SystemOptionConstants.OPT_SYS_LOOK_AND_FEEL);
      preferredFontSize = AsOptionMeta.getOptVal(SystemOptionConstants.OPT_PREFERRED_FONT_SIZE);

      if (v != null) {
        lafClassName = v;
      }*/

      LookAndFeel lf =
          (LookAndFeel)
              (Class.forName(lafClassName)
                  .newInstance()); // "com.ufgov.smartclient.plaf.BlueLookAndFeel"
      UIManager.setLookAndFeel(lf);
      SwingUtil.setFontSize(Integer.parseInt(preferredFontSize));
      SwingUtilities.updateComponentTreeUI((JApplet) f);
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
package com.ufgov.zc.client.zc.expertevaluate;
package com.ufgov.zc.client.component.ui;
示例#4
0
/**