Here you can find the source of setUIFont(javax.swing.plaf.FontUIResource f)
Parameter | Description |
---|---|
f | a parameter |
@SuppressWarnings("unchecked") public static void setUIFont(javax.swing.plaf.FontUIResource f)
//package com.java2s; //License from project: Open Source License import javax.swing.UIManager; public class Main { @SuppressWarnings("unchecked") public 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); }/*from ww w . j ava 2 s . c o m*/ } } }