本文整理汇总了Java中javax.swing.plaf.InsetsUIResource类的典型用法代码示例。如果您正苦于以下问题:Java InsetsUIResource类的具体用法?Java InsetsUIResource怎么用?Java InsetsUIResource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InsetsUIResource类属于javax.swing.plaf包,在下文中一共展示了InsetsUIResource类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: register
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
public void register(ConverterRegistry registry) {
registry.addConverter(Dimension.class, String.class, this);
registry.addConverter(String.class, Dimension.class, this);
registry.addConverter(DimensionUIResource.class, String.class, this);
registry.addConverter(Insets.class, String.class, this);
registry.addConverter(String.class, Insets.class, this);
registry.addConverter(InsetsUIResource.class, String.class, this);
registry.addConverter(Point.class, String.class, this);
registry.addConverter(String.class, Point.class, this);
registry.addConverter(Rectangle.class, String.class, this);
registry.addConverter(String.class, Rectangle.class, this);
registry.addConverter(Font.class, String.class, this);
registry.addConverter(FontUIResource.class, String.class, this);
}
示例2: AdrManagerFrame
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
public AdrManagerFrame(AdrProfileDescriptor selectedProfile) {
super();
this.processingHideEvent = false;
this.setTitle("MercuryTrade ADR");
this.setFocusable(true);
this.setFocusableWindowState(true);
this.setAlwaysOnTop(false);
this.selectedProfile = selectedProfile;
this.exportDialog = new AdrExportDialog(this, new ArrayList<>());
this.iconSelectDialog = new AdrIconSelectDialog();
this.iconSelectDialog.setLocationRelativeTo(null);
FrameDescriptor frameDescriptor = this.framesConfig.get(this.getClass().getSimpleName());
this.setPreferredSize(frameDescriptor.getFrameSize());
UIManager.put("MenuItem.background", AppThemeColor.ADR_BG);
UIManager.put("MenuItem.selectionBackground", AppThemeColor.ADR_POPUP_BG);
UIManager.put("Menu.contentMargins", new InsetsUIResource(2, 0, 2, 0));
UIManager.put("MenuItem.opaque", true);
UIManager.put("ComboBox.selectionBackground", AppThemeColor.HEADER);
UIManager.put("ComboBox.selectionForeground", AppThemeColor.ADR_POPUP_BG);
UIManager.put("ComboBox.disabledForeground", AppThemeColor.ADR_FOOTER_BG);
}
示例3: initForVista
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* 因Windos LNF会在Vista及更新的操作系统(如win7)上对Windows LNF作附加设置,
* 以保证与Vista及更新平台的外观的一致性(如让菜单菜项高度更大等),请参见
* WindowsLookAndFeel.initVistaComponentDefaults(..)。
* <p>
* BeautyEye中因需要保证审美一致性(在所有win平台上)而不需要这些额外的设置,
* 但因该方法是private私有方法,无法进行覆盖屏蔽,所以只能在此单列方法,以便针对Vista
* 及更新的平台进行补救性重新设置以便与BeautyEye LNF的审核进行适配.
*
* @see WindowsLookAndFeel.initVistaComponentDefaults(..)
*/
protected void initForVista()
{
if(WinUtils.isOnVista())
{
UIManager.put("CheckBoxMenuItem.margin",new InsetsUIResource(0,0,0,0));
UIManager.put("RadioButtonMenuItem.margin",new InsetsUIResource(0,0,0,0));
UIManager.put("Menu.margin",new InsetsUIResource(0,0,0,0));//windows lnf xp中默认是2,2,2,2
UIManager.put("MenuItem.margin",new InsetsUIResource(0,0,0,0));//windows lnf中 xp默认是2,2,2,2
UIManager.put("Menu.border",new BorderUIResource(BorderFactory.createEmptyBorder(1,3,2,3)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
UIManager.put("MenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(1,0,2,0)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
UIManager.put("CheckBoxMenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(4,2,4,2)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
UIManager.put("RadioButtonMenuItem.border",new BorderUIResource(BorderFactory.createEmptyBorder(4,0,4,0)));//javax.swing.plaf.basic.BasicBorders.MarginBorder;
// UIManager.put("PopupMenu.border",new BorderUIResource(BorderFactory.createEmptyBorder(20,10,20,10)));//
UIManager.put("CheckBoxMenuItem.checkIcon"
,new org.jb2011.lnf.beautyeye.ch9_menu.BECheckBoxMenuItemUI.CheckBoxMenuItemIcon().setUsedForVista(true));//javax.swing.plaf.basic.BasicIconFactory.CheckBoxMenuItemIcon);
UIManager.put("RadioButtonMenuItem.checkIcon"
,new org.jb2011.lnf.beautyeye.ch9_menu.BERadioButtonMenuItemUI.RadioButtonMenuItemIcon().setUsedForVista(true));
}
}
示例4: uiImpl
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* Ui impl.
*/
public static void uiImpl()
{
// UIManager.put("CheckBox.border",new BorderUIResource(new BERoundBorder().setArcWidth(0)));
UIManager.put("CheckBox.margin",new InsetsUIResource(4,3,4,3));
UIManager.put("RadioButton.margin",new InsetsUIResource(4,3,4,3));//2, 2, 2, 2));
UIManager.put("RadioButton.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
UIManager.put("CheckBox.background",new ColorUIResource(BeautyEyeLNFHelper.commonBackgroundColor));
UIManager.put("CheckBox.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
UIManager.put("RadioButton.foreground",new ColorUIResource(BeautyEyeLNFHelper.commonForegroundColor));
UIManager.put("RadioButton.icon", new RadioButtonIcon());
UIManager.put("CheckBox.icon", new CheckBoxIcon());
//衬距设定
UIManager.put("RadioButton.margin", new InsetsUIResource(1,1,1,1));//默认是2,2,2,2
UIManager.put("CheckBox.margin", new InsetsUIResource(1,1,1,1));//默认是2,2,2,2
}
示例5: register
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
public void register(ConverterRegistry registry) {
registry.addConverter(Dimension.class, String.class, this);
registry.addConverter(String.class, Dimension.class, this);
registry.addConverter(DimensionUIResource.class, String.class, this);
registry.addConverter(Insets.class, String.class, this);
registry.addConverter(String.class, Insets.class, this);
registry.addConverter(InsetsUIResource.class, String.class, this);
registry.addConverter(Point.class, String.class, this);
registry.addConverter(String.class, Point.class, this);
registry.addConverter(Rectangle.class, String.class, this);
registry.addConverter(String.class, Rectangle.class, this);
registry.addConverter(Font.class, String.class, this);
registry.addConverter(FontUIResource.class, String.class, this);
}
示例6: addBasicDefaults
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
@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");
}
示例7: addMacDefaults
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
@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);
}
示例8: register
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
@Override
public void register(Registry registry) {
registry.addConverter(Dimension.class, String.class, this);
registry.addConverter(String.class, Dimension.class, this);
registry.addConverter(DimensionUIResource.class, String.class, this);
registry.addConverter(Insets.class, String.class, this);
registry.addConverter(String.class, Insets.class, this);
registry.addConverter(InsetsUIResource.class, String.class, this);
registry.addConverter(Point.class, String.class, this);
registry.addConverter(String.class, Point.class, this);
registry.addConverter(Rectangle.class, String.class, this);
registry.addConverter(String.class, Rectangle.class, this);
registry.addConverter(Font.class, String.class, this);
registry.addConverter(FontUIResource.class, String.class, this);
}
示例9: getUIDefaults
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
public static final Object[] getUIDefaults()
{
return new Object[] {
//
// Notifications settings
NOTIFICATIONS_MaxDisplayed, NOTIFICATIONS_MaxDisplayed_Default
, NOTIFICATIONS_AutoFadeAwayTimeMillis, NOTIFICATIONS_AutoFadeAwayTimeMillis_Default
, NOTIFICATIONS_BottomGap, NOTIFICATIONS_BottomGap_Default
//
// Item settings
, ITEM_BackgroundColor, AdempierePLAF.createActiveValueProxy(AdempiereLookAndFeel.MANDATORY_BG_KEY, Color.WHITE) // same as mandatory background color
, ITEM_Border, new BorderUIResource(BorderFactory.createLineBorder(Color.GRAY, 1))
, ITEM_SummaryText_Font, new FontUIResource("Serif", Font.BOLD, 12)
, ITEM_DetailText_Font, new FontUIResource("Serif", Font.PLAIN, 12)
, ITEM_TextColor, null
, ITEM_MinimumSize, new DimensionUIResource(230, 45)
, ITEM_MaximumSize, null
//
// Button settings (i.e. the close button)
, ITEM_Button_Insets, new InsetsUIResource(1, 4, 1, 4)
, ITEM_Button_Size, 20
, ITEM_Button_Border, new BorderUIResource(BorderFactory.createEmptyBorder())
};
}
示例10: defineOptionPane
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
private void defineOptionPane(UIDefaults d) {
//Initialize OptionPane
d.put("OptionPane.contentMargins", new InsetsUIResource(15, 15, 15, 15));
d.put("OptionPane.opaque", Boolean.TRUE);
d.put("OptionPane.background", getDerivedColor("control", 0, 0, 0, 0, true));
d.put("OptionPane.buttonOrientation", new Integer(4));
d.put("OptionPane.messageAnchor", new Integer(17));
d.put("OptionPane.separatorPadding", new Integer(0));
d.put("OptionPane.sameSizeButtons", Boolean.FALSE);
d.put("OptionPane:\"OptionPane.separator\".contentMargins", new InsetsUIResource(1, 0, 0, 0));
d.put("OptionPane:\"OptionPane.messageArea\".contentMargins", new InsetsUIResource(0, 0, 10, 0));
d.put("OptionPane:\"OptionPane.messageArea\":\"OptionPane.label\".contentMargins", new InsetsUIResource(0, 10, 10, 10));
d.put("OptionPane[Enabled].errorIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.OptionPanePainter", OptionPanePainter.Which.ERRORICON_ENABLED));
d.put("OptionPane.errorIcon", new SeaGlassIcon("OptionPane", "errorIconPainter", 48, 48));
d.put("OptionPane[Enabled].informationIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.OptionPanePainter", OptionPanePainter.Which.INFORMATIONICON_ENABLED));
d.put("OptionPane.informationIcon", new SeaGlassIcon("OptionPane", "informationIconPainter", 48, 48));
d.put("OptionPane[Enabled].questionIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.OptionPanePainter", OptionPanePainter.Which.QUESTIONICON_ENABLED));
d.put("OptionPane.questionIcon", new SeaGlassIcon("OptionPane", "questionIconPainter", 48, 48));
d.put("OptionPane[Enabled].warningIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.OptionPanePainter", OptionPanePainter.Which.WARNINGICON_ENABLED));
d.put("OptionPane.warningIcon", new SeaGlassIcon("OptionPane", "warningIconPainter", 48, 48));
// Color Chooser Dialog
d.put("ColorChooser.swatchesDefaultRecentColor", getDerivedColor("control", 0, 0, 0, 0, true));
}
示例11: defineFileChooser
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
private void defineFileChooser(UIDefaults d) {
//Initialize FileChooser
d.put("FileChooser.contentMargins", new InsetsUIResource(10, 10, 10, 10));
d.put("FileChooser.opaque", Boolean.TRUE);
d.put("FileChooser.usesSingleFilePane", Boolean.TRUE);
d.put("FileChooser[Enabled].fileIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.FILEICON_ENABLED));
d.put("FileChooser.fileIcon", new SeaGlassIcon("FileChooser", "fileIconPainter", 16, 16));
d.put("FileChooser[Enabled].directoryIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.DIRECTORYICON_ENABLED));
d.put("FileChooser.directoryIcon", new SeaGlassIcon("FileChooser", "directoryIconPainter", 16, 16));
d.put("FileChooser[Enabled].upFolderIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.UPFOLDERICON_ENABLED));
d.put("FileChooser.upFolderIcon", new SeaGlassIcon("FileChooser", "upFolderIconPainter", 16, 16));
d.put("FileChooser[Enabled].newFolderIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.NEWFOLDERICON_ENABLED));
d.put("FileChooser.newFolderIcon", new SeaGlassIcon("FileChooser", "newFolderIconPainter", 16, 16));
d.put("FileChooser[Enabled].hardDriveIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.HARDDRIVEICON_ENABLED));
d.put("FileChooser.hardDriveIcon", new SeaGlassIcon("FileChooser", "hardDriveIconPainter", 16, 16));
d.put("FileChooser[Enabled].floppyDriveIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.FLOPPYDRIVEICON_ENABLED));
d.put("FileChooser.floppyDriveIcon", new SeaGlassIcon("FileChooser", "floppyDriveIconPainter", 16, 16));
d.put("FileChooser[Enabled].homeFolderIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.HOMEFOLDERICON_ENABLED));
d.put("FileChooser.homeFolderIcon", new SeaGlassIcon("FileChooser", "homeFolderIconPainter", 16, 16));
d.put("FileChooser[Enabled].detailsViewIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.DETAILSVIEWICON_ENABLED));
d.put("FileChooser.detailsViewIcon", new SeaGlassIcon("FileChooser", "detailsViewIconPainter", 16, 16));
d.put("FileChooser[Enabled].listViewIconPainter", new LazyPainter("com.seaglasslookandfeel.painter.FileChooserPainter", FileChooserPainter.Which.LISTVIEWICON_ENABLED));
d.put("FileChooser.listViewIcon", new SeaGlassIcon("FileChooser", "listViewIconPainter", 16, 16));
}
示例12: defineInternalFrameCloseButtons
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* Initialize the internal frame close button settings.
*
* @param d the UI defaults map.
*/
private void defineInternalFrameCloseButtons(UIDefaults d) {
String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"";
String c = PAINTER_PREFIX + "TitlePaneCloseButtonPainter";
// Set the multiplicity of states for the Close button.
d.put(p + ".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused");
d.put(p + ".WindowNotFocused", new TitlePaneCloseButtonWindowNotFocusedState());
d.put(p + ".contentMargins", new InsetsUIResource(0, 0, 0, 0));
d.put(p + "[Disabled].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_DISABLED));
d.put(p + "[Enabled].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_ENABLED));
d.put(p + "[MouseOver].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_MOUSEOVER));
d.put(p + "[Pressed].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_PRESSED));
d.put(p + "[Enabled+WindowNotFocused].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_ENABLED_WINDOWNOTFOCUSED));
d.put(p + "[MouseOver+WindowNotFocused].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_MOUSEOVER));
d.put(p + "[Pressed+WindowNotFocused].backgroundPainter", new LazyPainter(c, TitlePaneCloseButtonPainter.Which.BACKGROUND_PRESSED_WINDOWNOTFOCUSED));
d.put(p + ".icon", new SeaGlassIcon(p, "iconPainter", 43, 18));
}
示例13: defineInternalFrameMenuButtons
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* Initialize the internal frame menu button settings.
*
* @param d the UI defaults map.
*/
private void defineInternalFrameMenuButtons(UIDefaults d) {
String p = "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"";
String c = PAINTER_PREFIX + "TitlePaneMenuButtonPainter";
d.put(p + ".WindowNotFocused", new TitlePaneMenuButtonWindowNotFocusedState());
d.put(p + ".contentMargins", new InsetsUIResource(0, 0, 0, 0));
// Set the states for the Menu button.
d.put(p + "[Enabled].iconPainter", new LazyPainter(c, TitlePaneMenuButtonPainter.Which.ICON_ENABLED));
d.put(p + "[Disabled].iconPainter", new LazyPainter(c, TitlePaneMenuButtonPainter.Which.ICON_DISABLED));
d.put(p + "[MouseOver].iconPainter", new LazyPainter(c, TitlePaneMenuButtonPainter.Which.ICON_MOUSEOVER));
d.put(p + "[Pressed].iconPainter", new LazyPainter(c, TitlePaneMenuButtonPainter.Which.ICON_PRESSED));
d.put(p + "[Enabled+WindowNotFocused].iconPainter",
new LazyPainter(c,
TitlePaneMenuButtonPainter.Which.ICON_ENABLED_WINDOWNOTFOCUSED));
d.put(p + "[MouseOver+WindowNotFocused].iconPainter",
new LazyPainter(c,
TitlePaneMenuButtonPainter.Which.ICON_MOUSEOVER_WINDOWNOTFOCUSED));
d.put(p + "[Pressed+WindowNotFocused].iconPainter",
new LazyPainter(c,
TitlePaneMenuButtonPainter.Which.ICON_PRESSED_WINDOWNOTFOCUSED));
d.put(p + ".icon", new SeaGlassIcon(p, "iconPainter", 19, 18));
}
示例14: definePopups
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* Initialize the popup settings.
*
* @param d the UI defaults map.
*/
private void definePopups(UIDefaults d) {
d.put("seaGlassPopupBorder", new ColorUIResource(0xbbbbbb));
d.put("popupMenuInteriorEnabled", Color.WHITE);
// Rossi: Changed color of popup / submenus to get better contrast to bright backgrounds.
// d.put("popupMenuBorderEnabled", new Color(0xdddddd));
d.put("popupMenuBorderEnabled", new Color(0x5b7ea4));
String c = PAINTER_PREFIX + "PopupMenuPainter";
String p = "PopupMenu";
d.put(p + ".contentMargins", new InsetsUIResource(6, 1, 6, 1));
d.put(p + ".opaque", Boolean.TRUE);
d.put(p + ".consumeEventOnClose", Boolean.TRUE);
d.put(p + "[Disabled].backgroundPainter", new LazyPainter(c, PopupMenuPainter.Which.BACKGROUND_DISABLED));
d.put(p + "[Enabled].backgroundPainter", new LazyPainter(c, PopupMenuPainter.Which.BACKGROUND_ENABLED));
// Initialize PopupMenuSeparator
c = PAINTER_PREFIX + "SeparatorPainter";
p = "PopupMenuSeparator";
d.put(p + ".contentMargins", new InsetsUIResource(1, 0, 2, 0));
d.put(p + "[Enabled].backgroundPainter", new LazyPainter(c, SeparatorPainter.Which.BACKGROUND_ENABLED));
}
示例15: defineScrollPane
import javax.swing.plaf.InsetsUIResource; //导入依赖的package包/类
/**
* Initialize the scroll pane UI
* @param d
*/
private void defineScrollPane(UIDefaults d) {
// Define ScrollPane border painters.
String c = PAINTER_PREFIX + "ScrollPanePainter";
String p = "ScrollPane";
d.put(p + ".opaque", Boolean.FALSE);
d.put(p + ".contentMargins", new InsetsUIResource(3, 3, 3, 3));
// d.put(p + ".useChildTextComponentFocus", Boolean.TRUE);
d.put(p + ".backgroundPainter", new LazyPainter(c, ScrollPanePainter.Which.BACKGROUND_ENABLED));
d.put(p + "[Enabled+Focused].borderPainter", new LazyPainter(c, ScrollPanePainter.Which.BORDER_ENABLED_FOCUSED));
d.put(p + "[Enabled].borderPainter", new LazyPainter(c, ScrollPanePainter.Which.BORDER_ENABLED));
// Store ScrollPane Corner Component
d.put(p + ".cornerPainter", new LazyPainter(c, ScrollPanePainter.Which.CORNER_ENABLED));
//Initialize Viewport
p = "Viewport";
d.put(p + ".contentMargins", new InsetsUIResource(0, 0, 0, 0));
d.put(p + ".opaque", Boolean.TRUE);
}