protected void initClassDefaults(UIDefaults table) { // System.out.println("AdempiereLookAndFeel.initClassDefaults"); super.initClassDefaults(table); // Overwrite putDefault(table, "ComboBoxUI"); putDefault(table, "LabelUI"); putDefault(table, "TabbedPaneUI"); putDefault(table, "MenuUI"); putDefault(table, "MenuBarUI"); putDefault(table, "MenuItemUI"); } // initClassDefaults
protected void initComponentDefaults(UIDefaults table) { super.initComponentDefaults(table); // ComboBox defaults Color c = table.getColor("TextField.background"); table.put("ComboBox.background", c); table.put("ComboBox.listBackground", c); // omidp // Class lf = com.jgoodies.looks.plastic.PlasticLookAndFeel.class; Class lf = de.muntjak.tinylookandfeel.TinyLookAndFeel.class; // table.put("Tree.openIcon", makeIcon(lf, "icons/TreeMinusIcon.png")); // table.put("Tree.closedIcon", makeIcon(lf, "icons/TreePlusIcon.png")); table.put("Tree.leafIcon", makeIcon(lf, "icons/TreeLeafIcon.png")); } // initComponentDefaults
protected void initSystemColorDefaults(UIDefaults table) { super.initSystemColorDefaults(table); } // initSystemColorDefaults
public void provideErrorFeedback(Component component) { super.provideErrorFeedback(component); } // provideErrorFeedback
/** * Set Current Theme * * @param theme metal theme */ public static void setCurrentTheme(TinyDefaultTheme theme) { if (theme != null) { s_theme = theme; TinyLookAndFeel.setCurrentTheme(s_theme); } } // setCurrentTheme