package com.vci.client.logon.client; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import com.l2fprod.gui.plaf.skin.Skin; import com.l2fprod.gui.plaf.skin.SkinLookAndFeel; import com.vci.client.ui.swing.VCISwingUtil; public class BaseStyle { private static void setUIFont (javax.swing.plaf.FontUIResource f) { java.util.Enumeration keys = UIManager.getDefaults().keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); Object value = UIManager.get (key); if (value instanceof javax.swing.plaf.FontUIResource) UIManager.put (key, f); } } public static void initStyle() { try { // LookAndFeel alloyLnF = new com.incors.plaf.alloy.AlloyLookAndFeel(); // javax.swing.UIManager.setLookAndFeel(alloyLnF); Skin skin = SkinLookAndFeel.loadThemePack(BaseStyle.class.getResource("/skin/aquathemepack.zip")); SkinLookAndFeel.setSkin(skin); //VCISwingUtil.setLookAndFeel("com.l2fprod.gui.plaf.skin.SkinLookAndFeel"); //VCISwingUtil.setLookAndFeel("com.sun.java.swing.plaf.windows.windowsLookFeel"); VCISwingUtil.setLookAndFeel(); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } javax.swing.plaf.FontUIResource fontRes = new javax.swing.plaf.FontUIResource(VCISwingUtil.FONT_SONTTI_PLAN_14); setUIFont(fontRes); } }