@Override protected void addMotifDefaults(LookAndFeelAddons addon, DefaultsList defaults) { super.addMotifDefaults(addon, defaults); defaults.add("SearchField.icon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.rolloverIcon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.pressedIcon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.popupIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.popupRolloverIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.popupPressedIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.clearIcon", getIcon("macosx/resources/clear.png")); defaults.add("SearchField.clearRolloverIcon", getIcon("macosx/resources/clear_rollover.png")); defaults.add("SearchField.clearPressedIcon", getIcon("macosx/resources/clear_pressed.png")); }
@Override protected void addMacDefaults(LookAndFeelAddons addon, DefaultsList defaults) { super.addMacDefaults(addon, defaults); defaults.add("SearchField.icon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.rolloverIcon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.pressedIcon", getIcon("macosx/resources/search.png")); defaults.add("SearchField.popupIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.popupRolloverIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.popupPressedIcon", getIcon("macosx/resources/search_popup.png")); defaults.add("SearchField.clearIcon", getIcon("macosx/resources/clear.png")); defaults.add("SearchField.clearRolloverIcon", getIcon("macosx/resources/clear_rollover.png")); defaults.add("SearchField.clearPressedIcon", getIcon("macosx/resources/clear_pressed.png")); defaults.add("SearchField.buttonMargin", new InsetsUIResource(0, 0, 0, 0)); defaults.add("SearchField.popupSource", SEARCH_FIELD_SOURCE); }
@Override protected void addMetalDefaults(LookAndFeelAddons addon, DefaultsList defaults) { super.addMetalDefaults(addon, defaults); defaults.add("SearchField.buttonMargin", new InsetsUIResource(0, 0, 1, 1)); }
@Override protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) { super.addWindowsDefaults(addon, defaults); defaults.add("SearchField.promptFontStyle", Font.ITALIC); defaults.add("SearchField.layoutStyle", LayoutStyle.VISTA); defaults.add("SearchField.icon", getIcon("windows/resources/search.gif")); defaults.add("SearchField.rolloverIcon", getIcon("windows/resources/search_rollover.gif")); defaults.add("SearchField.pressedIcon", getIcon("windows/resources/search_pressed.gif")); defaults.add("SearchField.popupIcon", getIcon("windows/resources/search_popup.gif")); defaults.add( "SearchField.popupRolloverIcon", getIcon("windows/resources/search_popup_rollover.gif")); defaults.add( "SearchField.popupPressedIcon", getIcon("windows/resources/search_popup_pressed.gif")); defaults.add("SearchField.clearIcon", getIcon("windows/resources/clear.gif")); defaults.add("SearchField.clearRolloverIcon", getIcon("windows/resources/clear_rollover.gif")); defaults.add("SearchField.clearPressedIcon", getIcon("windows/resources/clear_pressed.gif")); defaults.add("SearchField.useSeperatePopupButton", Boolean.TRUE); defaults.add("SearchField.popupOffset", -1); // Do it like 'Windows Media Player' in XP: // Replace the border line with the search button line on rollover. // But not in classic mode! if (UIManager.getLookAndFeel().getClass().getName().indexOf("Classic") == -1) { defaults.add("SearchField.buttonMargin", new InsetsUIResource(0, -1, 0, -1)); } else { defaults.add("SearchField.buttonMargin", new InsetsUIResource(0, 0, 0, 0)); } }
@Override protected void addBasicDefaults(LookAndFeelAddons addon, DefaultsList defaults) { super.addBasicDefaults(addon, defaults); defaults.add("SearchField.layoutStyle", LayoutStyle.MAC); defaults.add("SearchField.icon", getIcon("basic/resources/search.gif")); defaults.add("SearchField.rolloverIcon", getIcon("basic/resources/search_rollover.gif")); defaults.add("SearchField.pressedIcon", getIcon("basic/resources/search.gif")); defaults.add("SearchField.popupIcon", getIcon("basic/resources/search_popup.gif")); defaults.add( "SearchField.popupRolloverIcon", getIcon("basic/resources/search_popup_rollover.gif")); defaults.add("SearchField.clearIcon", getIcon("basic/resources/clear.gif")); defaults.add("SearchField.clearRolloverIcon", getIcon("basic/resources/clear_rollover.gif")); defaults.add("SearchField.clearPressedIcon", getIcon("basic/resources/clear_pressed.gif")); defaults.add("SearchField.buttonMargin", new InsetsUIResource(1, 1, 1, 1)); defaults.add("SearchField.popupSource", BUTTON_SOURCE); // webstart fix UIManagerExt.addResourceBundle("org.jdesktop.swingx.plaf.basic.resources.SearchField"); // // UIManager.getDefaults().addResourceBundle("org.jdesktop.swingx.plaf.basic.resources.SearchField"); }