Пример #1
0
  public static void configureLookAndFeel() {
    try {

      Properties props = new Properties();

      props.setProperty("controlTextFont", "Dialog 10");
      props.setProperty("systemTextFont", "Dialog 10");
      props.setProperty("userTextFont", "Dialog 10");
      props.setProperty("menuTextFont", "Dialog 10");
      props.setProperty("windowTitleFont", "Dialog bold 10");
      props.setProperty("subTextFont", "Dialog 8");

      props.put("logoString", "Herobrine");
      props.put("textAntiAliasing", "on");

      com.jtattoo.plaf.acryl.AcrylLookAndFeel.setCurrentTheme(props);
      UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");

      // Fix Leightweight component render issues
      JPopupMenu.setDefaultLightWeightPopupEnabled(false);
      ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Пример #2
0
  public static void main(String[] args) {

    RhLoader load = new RhLoader();
    load.setVisible(true);

    try {
      com.jtattoo.plaf.acryl.AcrylLookAndFeel.setTheme("Green", "", "");
      UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
    } catch (Exception e) {
    }

    RhFrame f = new RhFrame();
    load.setVisible(false);
    f.setExtendedState(JFrame.MAXIMIZED_BOTH);
    f.setVisible(true);

    f.getLogger().setVisible(true);
  }