Package javax.swing.plaf

Examples of javax.swing.plaf.DimensionUIResource


                    "CommandBar.titleBarSize", 17,
                    "CommandBar.titleBarButtonGap", 1,
                    "CommandBar.titleBarBackground", activeTitleBackgroundColor,
                    "CommandBar.titleBarForeground", activeTitleTextColor,
                    "CommandBar.titleBarFont", boldFont,
                    "CommandBar.minimumSize", new DimensionUIResource(20, 20),

                    "CommandBar.separatorSize", 5,

                    // *** Separator
                    "CommandBarSeparator.background", new Color(219, 216, 209),
View Full Code Here


                    "CommandBar.titleBarSize", 17,
                    "CommandBar.titleBarButtonGap", 1,
                    "CommandBar.titleBarBackground", activeTitleBackgroundColor,
                    "CommandBar.titleBarForeground", activeTitleTextColor,
                    "CommandBar.titleBarFont", controlFont,
                    "CommandBar.minimumSize", new DimensionUIResource(16, 16),

                    "CommandBar.separatorSize", 5,

                    // *** Separator
                    "CommandBarSeparator.background", new Color(219, 216, 209),
View Full Code Here

                Dimension size = ((JToolBar.Separator)sep).getSeparatorSize();
                if (size == null || size instanceof UIResource) {
                    size = (DimensionUIResource)style.get(
                                      context, "ToolBar.separatorSize");
                    if (size == null) {
                        size = new DimensionUIResource(10, 10);
                    }
                    ((JToolBar.Separator)sep).setSeparatorSize(size);
                }
            }
        }
View Full Code Here

        Object buttonMargin = microLayout.getButtonMargin();

        Object toolBarSeparatorSize = LookUtils.IS_JAVA_1_4_2_OR_LATER
            ? null
            : new DimensionUIResource(6, Options.getDefaultIconSize().height);

        Object textInsets = microLayout.getTextInsets();
        Object wrappedTextInsets = microLayout.getWrappedTextInsets();
        Insets comboEditorInsets = microLayout.getComboBoxEditorInsets();
View Full Code Here

                                      "CheckBoxMenuItem.borderPainted", Boolean.FALSE,
                                      "CheckBoxMenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getCheckBoxMenuItemIcon"),
                                      "CheckBoxMenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "ColorChooser.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ColorChooser.swatchesRecentSwatchSize", new DimensionUIResource(10, 10),
                                      "ColorChooser.swatchesSwatchSize", new DimensionUIResource(10, 10),
                                      "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(comboBoxAncestorInputMap),
                                      "ComboBox.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(desktopAncestorInputMap),
                                      "DesktopIcon.border"new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "EditorPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "EditorPane.caretBlinkRate", BLINK_RATE,
                                      "EditorPane.font", lazyValueForFont("Serif", Font.PLAIN, 12),
                                      "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3),
                                      "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {"ESCAPE", "cancelSelection" }),
                                      "FileChooser.detailsViewIcon", makeIcon(BasicLookAndFeel.class, "icons/DetailsView.gif"),
                                      "FileChooser.homeFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/HomeFolder.gif"),
                                      "FileChooser.listViewIcon", makeIcon(BasicLookAndFeel.class, "icons/ListView.gif"),
                                      "FileChooser.newFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/NewFolder.gif"),
                                      "FileChooser.upFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/UpFolder.gif"),
                                      "FileView.computerIcon", makeIcon(BasicLookAndFeel.class, "icons/Computer.gif"),
                                      "FileView.directoryIcon", makeIcon(BasicLookAndFeel.class, "icons/Directory.gif"),
                                      "FileView.fileIcon", makeIcon(BasicLookAndFeel.class, "icons/File.gif"),
                                      "FileView.floppyDriveIcon", makeIcon(BasicLookAndFeel.class, "icons/FloppyDrive.gif"),
                                      "FileView.hardDriveIcon", makeIcon(BasicLookAndFeel.class, "icons/HardDrive.gif"),
                                      "FormattedTextField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "FormattedTextField.caretBlinkRate", BLINK_RATE,
                                      "FormattedTextField.focusInputMap", new UIDefaults.LazyInputMap(formattedTextFieldFocusInputMap),
                                      "FormattedTextField.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "FormattedTextField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "InternalFrame.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "InternalFrame.closeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.icon", makeIcon(BasicLookAndFeel.class, "icons/Logo.gif"),
                                      "InternalFrame.iconifyIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.maximizeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.minimizeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.titleFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "hideSystemMenu" },
                                      "Label.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "List.cellRenderer", makeListCellRenderer(),
                                      "List.focusCellHighlightBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$LineBorderUIResource", new Object[] {new ColorUIResource(Color.BLACK)}),
                                      "List.focusInputMap", new UIDefaults.LazyInputMap(listFocusInputMap),
                                      "List.focusInputMap.RightToLeft", new UIDefaults.LazyInputMap(listFocusInputMapRightToLeft),
                                      "List.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuArrowIcon"),
                                      "Menu.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "Menu.borderPainted", Boolean.FALSE,
                                      "Menu.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemCheckIcon"),
                                      "Menu.crossMenuMnemonic", Boolean.TRUE,
                                      "Menu.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "Menu.menuPopupOffsetX", new Integer(0),
                                      "Menu.menuPopupOffsetY", new Integer(0),
                                      "Menu.shortcutKeys", new int[] { KeyEvent.ALT_MASK },
                                      "Menu.submenuPopupOffsetX", new Integer(-2),
                                      "Menu.submenuPopupOffsetY", new Integer(-2),
                                      "MenuBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getMenuBarBorder"),
                                      "MenuBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuBar.windowBindings", new Object[] {"F10", "takeFocus"},
                                      "MenuItem.acceleratorDelimiter", new String("+"),
                                      "MenuItem.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuItem.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemArrowIcon"),
                                      "MenuItem.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "MenuItem.borderPainted", Boolean.FALSE,
                                      "MenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemCheckIcon"),
                                      "MenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "OptionPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] { new Integer(10), new Integer(10), new Integer(12), new Integer(10)}),
                                      "OptionPane.buttonAreaBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] {new Integer(6), new Integer(0), new Integer(0), new Integer(0)}),
                                      "OptionPane.buttonClickThreshhold", new Integer(500),
                                      "OptionPane.errorIcon", makeIcon(BasicLookAndFeel.class, "icons/Error.gif"),
                                      "OptionPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "OptionPane.informationIcon", makeIcon(BasicLookAndFeel.class, "icons/Inform.gif"),
                                      "OptionPane.messageAreaBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] {new Integer(0), new Integer(0), new Integer(0), new Integer(0)}),
                                      "OptionPane.minimumSize", new DimensionUIResource(262, 90),
                                      "OptionPane.questionIcon", makeIcon(BasicLookAndFeel.class, "icons/Question.gif"),
                                      "OptionPane.warningIcon", makeIcon(BasicLookAndFeel.class, "icons/Warn.gif"),
                                      "OptionPane.windowBindings", new Object[] {"ESCAPE", "close"},
                                      "Panel.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "PasswordField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "PasswordField.caretBlinkRate", BLINK_RATE,
                                      "PasswordField.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "PopupMenu.border"new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "PopupMenu.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "PopupMenu.selectedWindowInputMapBindings", new UIDefaults.LazyInputMap(popupMenuSelectedWindowInputMapBindings),
                                      "PopupMenu.selectedWindowInputMapBindings.RightToLeft", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "selectChild", "KP_LEFT", "selectChild", "RIGHT", "selectParent", "KP_RIGHT", "selectParent" }),
                                      "ProgressBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getProgressBarBorder"),
                                      "ProgressBar.verticalSize", new DimensionUIResource(12, 146),
                                      "ProgressBar.horizontalSize", new DimensionUIResource(146, 12),
                                      "ProgressBar.cellLength", new Integer(3),
                                      "ProgressBar.cellSpacing", new Integer(2),
                                      "ProgressBar.cycleTime", new Integer(500),
                                      "ProgressBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ProgressBar.repaintInterval", new Integer(60),
                                      "RadioButton.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getRadioButtonBorder"),
                                      "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(radioButtonFocusInputMap),
                                      "RadioButton.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButton.icon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getRadioButtonIcon"),
                                      "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "RadioButton.textIconGap", new Integer(4),
                                      "RadioButton.textShiftOffset", new Integer(0),
                                      "RadioButtonMenuItem.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButtonMenuItem.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemArrowIcon"),
                                      "RadioButtonMenuItem.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "RadioButtonMenuItem.borderPainted", Boolean.FALSE,
                                      "RadioButtonMenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getRadioButtonMenuItemIcon"),
                                      "RadioButtonMenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release"},
                                      "RootPane.ancestorInputMap", new UIDefaults.LazyInputMap(rootPaneAncestorInputMap),
                                      "ScrollBar.ancestorInputMap", new UIDefaults.LazyInputMap(scrollBarAncestorInputMap),
                                      "ScrollBar.ancestorInputMap.RightToLeft"new UIDefaults.LazyInputMap(scrollBarAncestorInputMapRightToLeft),
                                      "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096),
                                      "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8),
                                      "ScrollBar.width", new Integer(16),
                                      "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(scrollPaneAncestorInputMap),
                                      "ScrollPane.ancestorInputMap.RightToLeft", new UIDefaults.LazyInputMap(scrollPaneAncestorInputMapRightToLeft),
                                      "ScrollPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "ScrollPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Slider.focusInputMap", new UIDefaults.LazyInputMap(sliderFocusInputMap),
                                      "Slider.focusInputMap.RightToLeft", new UIDefaults.LazyInputMap(new Object[] {"RIGHT", "negativeUnitIncrement", "KP_RIGHT", "negativeUnitIncrement", "LEFT", "positiveUnitIncrement", "KP_LEFT", "positiveUnitIncrement" }),
                                      "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2),
                                      "Spinner.ancestorInputMap", new UIDefaults.LazyInputMap(spinnerAncestorInputMap),
                                      "Spinner.arrowButtonSize", new DimensionUIResource(16, 5),
                                      "Spinner.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "Spinner.editorBorderPainted", Boolean.FALSE,
                                      "Spinner.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "SplitPane.ancestorInputMap"new UIDefaults.LazyInputMap(splitPaneAncestorInputMap),
                                      "SplitPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getSplitPaneBorder"),
                                      "SplitPane.dividerSize", new Integer(7),
                                      "SplitPaneDivider.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getSplitPaneDividerBorder"),
                                      "TabbedPane.ancestorInputMap"new UIDefaults.LazyInputMap(tabbedPaneAncestorInputMap),
                                      "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3),
                                      "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(tabbedPaneFocusInputMap),
                                      "TabbedPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),
                                      "TabbedPane.tabAreaInsets", new InsetsUIResource(3, 2, 0, 2),
                                      "TabbedPane.tabInsets", new InsetsUIResource(0, 4, 1, 4),
                                      "TabbedPane.tabRunOverlay", new Integer(2),
                                      "TabbedPane.textIconGap", new Integer(4),
                                      "Table.ancestorInputMap", new UIDefaults.LazyInputMap(tableAncestorInputMap),
                                      "Table.ancestorInputMap.RightToLeft", new UIDefaults.LazyInputMap(tableAncestorInputMapRightToLeft),
                                      "Table.focusCellHighlightBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$LineBorderUIResource", new Object[] {new ColorUIResource(Color.BLACK) }),
                                      "Table.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Table.scrollPaneBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getLoweredBevelBorderUIResource"),
                                      "TableHeader.cellBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$BevelBorderUIResource", new Object[] {new Integer(0), null, null, null, null}),
                                      "TableHeader.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "TextArea.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "TextArea.caretBlinkRate", BLINK_RATE,
                                      "TextArea.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "TextArea.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "TextField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "TextField.caretBlinkRate", BLINK_RATE,
                                      "TextField.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "TextField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "TextPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "TextPane.caretBlinkRate", BLINK_RATE,
                                      "TextPane.font", lazyValueForFont("Serif", Font.PLAIN, 12),
                                      "TextPane.margin", new InsetsUIResource(3, 3, 3, 3),
                                      "TitledBorder.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getEtchedBorderUIResource"),
                                      "TitledBorder.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToggleButton.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getToggleButtonBorder"),
                                      "ToggleButton.focusInputMap"new UIDefaults.LazyInputMap(toggleButtonFocusInputMap),
                                      "ToggleButton.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14),
                                      "ToggleButton.textIconGap", new Integer(4),
                                      "ToggleButton.textShiftOffset", new Integer(0),
                                      "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(toolBarAncestorInputMap),
                                      "ToolBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getEtchedBorderUIResource"),
                                      "ToolBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToolBar.separatorSize", new DimensionUIResource(10, 10),
                                      "ToolTip.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getBlackLineBorderUIResource"),
                                      "ToolTip.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {"ESCAPE", "cancel" }),
                                      "Tree.changeSelectionWithFocus", Boolean.TRUE,
                                      "Tree.closedIcon", makeIcon(BasicLookAndFeel.class, "icons/TreeClosed.gif"),
View Full Code Here

                                      "CheckBoxMenuItem.borderPainted", Boolean.FALSE,
                                      "CheckBoxMenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getCheckBoxMenuItemIcon"),
                                      "CheckBoxMenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "ColorChooser.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ColorChooser.swatchesRecentSwatchSize", new DimensionUIResource(10, 10),
                                      "ColorChooser.swatchesSwatchSize", new DimensionUIResource(10, 10),
                                      "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(comboBoxAncestorInputMap),
                                      "ComboBox.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(desktopAncestorInputMap),
                                      "DesktopIcon.border"new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "EditorPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "EditorPane.caretBlinkRate", BLINK_RATE,
                                      "EditorPane.font", lazyValueForFont("Serif", Font.PLAIN, 12),
                                      "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3),
                                      "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {"ESCAPE", "cancelSelection" }),
                                      "FileChooser.detailsViewIcon", makeIcon(BasicLookAndFeel.class, "icons/DetailsView.gif"),
                                      "FileChooser.homeFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/HomeFolder.gif"),
                                      "FileChooser.listViewIcon", makeIcon(BasicLookAndFeel.class, "icons/ListView.gif"),
                                      "FileChooser.newFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/NewFolder.gif"),
                                      "FileChooser.upFolderIcon", makeIcon(BasicLookAndFeel.class, "icons/UpFolder.gif"),
                                      "FileView.computerIcon", makeIcon(BasicLookAndFeel.class, "icons/Computer.gif"),
                                      "FileView.directoryIcon", makeIcon(BasicLookAndFeel.class, "icons/Directory.gif"),
                                      "FileView.fileIcon", makeIcon(BasicLookAndFeel.class, "icons/File.gif"),
                                      "FileView.floppyDriveIcon", makeIcon(BasicLookAndFeel.class, "icons/FloppyDrive.gif"),
                                      "FileView.hardDriveIcon", makeIcon(BasicLookAndFeel.class, "icons/HardDrive.gif"),
                                      "FormattedTextField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "FormattedTextField.caretBlinkRate", BLINK_RATE,
                                      "FormattedTextField.focusInputMap", new UIDefaults.LazyInputMap(formattedTextFieldFocusInputMap),
                                      "FormattedTextField.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "FormattedTextField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "InternalFrame.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "InternalFrame.closeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.icon", makeIcon(BasicLookAndFeel.class, "icons/Logo.gif"),
                                      "InternalFrame.iconifyIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.maximizeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.minimizeIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "createEmptyFrameIcon"),
                                      "InternalFrame.titleFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "InternalFrame.windowBindings", new Object[] { "shift ESCAPE", "showSystemMenu", "ctrl SPACE", "showSystemMenu", "ESCAPE", "hideSystemMenu" },
                                      "Label.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "List.cellRenderer", makeListCellRenderer(),
                                      "List.focusCellHighlightBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$LineBorderUIResource", new Object[] {new ColorUIResource(Color.BLACK)}),
                                      "List.focusInputMap", new UIDefaults.LazyInputMap(listFocusInputMap),
                                      "List.focusInputMap.RightToLeft", new UIDefaults.LazyInputMap(listFocusInputMapRightToLeft),
                                      "List.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuArrowIcon"),
                                      "Menu.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "Menu.borderPainted", Boolean.FALSE,
                                      "Menu.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemCheckIcon"),
                                      "Menu.crossMenuMnemonic", Boolean.TRUE,
                                      "Menu.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Menu.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "Menu.menuPopupOffsetX", new Integer(0),
                                      "Menu.menuPopupOffsetY", new Integer(0),
                                      "Menu.shortcutKeys", new int[] { KeyEvent.ALT_MASK },
                                      "Menu.submenuPopupOffsetX", new Integer(-2),
                                      "Menu.submenuPopupOffsetY", new Integer(-2),
                                      "MenuBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getMenuBarBorder"),
                                      "MenuBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuBar.windowBindings", new Object[] {"F10", "takeFocus"},
                                      "MenuItem.acceleratorDelimiter", new String("+"),
                                      "MenuItem.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuItem.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemArrowIcon"),
                                      "MenuItem.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "MenuItem.borderPainted", Boolean.FALSE,
                                      "MenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemCheckIcon"),
                                      "MenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "OptionPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] { new Integer(10), new Integer(10), new Integer(12), new Integer(10)}),
                                      "OptionPane.buttonAreaBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] {new Integer(6), new Integer(0), new Integer(0), new Integer(0)}),
                                      "OptionPane.buttonClickThreshhold", new Integer(500),
                                      "OptionPane.errorIcon", makeIcon(BasicLookAndFeel.class, "icons/Error.gif"),
                                      "OptionPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "OptionPane.informationIcon", makeIcon(BasicLookAndFeel.class, "icons/Inform.gif"),
                                      "OptionPane.messageAreaBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$EmptyBorderUIResource", new Object[] {new Integer(0), new Integer(0), new Integer(0), new Integer(0)}),
                                      "OptionPane.minimumSize", new DimensionUIResource(262, 90),
                                      "OptionPane.questionIcon", makeIcon(BasicLookAndFeel.class, "icons/Question.gif"),
                                      "OptionPane.warningIcon", makeIcon(BasicLookAndFeel.class, "icons/Warn.gif"),
                                      "OptionPane.windowBindings", new Object[] {"ESCAPE", "close"},
                                      "Panel.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "PasswordField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "PasswordField.caretBlinkRate", BLINK_RATE,
                                      "PasswordField.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "PopupMenu.border"new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getInternalFrameBorder"),
                                      "PopupMenu.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "PopupMenu.selectedWindowInputMapBindings", new UIDefaults.LazyInputMap(popupMenuSelectedWindowInputMapBindings),
                                      "PopupMenu.selectedWindowInputMapBindings.RightToLeft", new UIDefaults.LazyInputMap(new Object[] { "LEFT", "selectChild", "KP_LEFT", "selectChild", "RIGHT", "selectParent", "KP_RIGHT", "selectParent" }),
                                      "ProgressBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getProgressBarBorder"),
                                      "ProgressBar.verticalSize", new DimensionUIResource(12, 146),
                                      "ProgressBar.horizontalSize", new DimensionUIResource(146, 12),
                                      "ProgressBar.cellLength", new Integer(3),
                                      "ProgressBar.cellSpacing", new Integer(2),
                                      "ProgressBar.cycleTime", new Integer(500),
                                      "ProgressBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ProgressBar.repaintInterval", new Integer(60),
                                      "RadioButton.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getRadioButtonBorder"),
                                      "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(radioButtonFocusInputMap),
                                      "RadioButton.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButton.icon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getRadioButtonIcon"),
                                      "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "RadioButton.textIconGap", new Integer(4),
                                      "RadioButton.textShiftOffset", new Integer(0),
                                      "RadioButtonMenuItem.acceleratorFont", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButtonMenuItem.arrowIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getMenuItemArrowIcon"),
                                      "RadioButtonMenuItem.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "RadioButtonMenuItem.borderPainted", Boolean.FALSE,
                                      "RadioButtonMenuItem.checkIcon", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicIconFactory", "getRadioButtonMenuItemIcon"),
                                      "RadioButtonMenuItem.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
                                      "RootPane.defaultButtonWindowKeyBindings", new Object[] { "ENTER", "press", "released ENTER", "release", "ctrl ENTER", "press", "ctrl released ENTER", "release"},
                                      "RootPane.ancestorInputMap", new UIDefaults.LazyInputMap(rootPaneAncestorInputMap),
                                      "ScrollBar.ancestorInputMap", new UIDefaults.LazyInputMap(scrollBarAncestorInputMap),
                                      "ScrollBar.ancestorInputMap.RightToLeft"new UIDefaults.LazyInputMap(scrollBarAncestorInputMapRightToLeft),
                                      "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096),
                                      "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8),
                                      "ScrollBar.width", new Integer(16),
                                      "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(scrollPaneAncestorInputMap),
                                      "ScrollPane.ancestorInputMap.RightToLeft", new UIDefaults.LazyInputMap(scrollPaneAncestorInputMapRightToLeft),
                                      "ScrollPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "ScrollPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Slider.focusInputMap", new UIDefaults.LazyInputMap(sliderFocusInputMap),
                                      "Slider.focusInputMap.RightToLeft", new UIDefaults.LazyInputMap(new Object[] {"RIGHT", "negativeUnitIncrement", "KP_RIGHT", "negativeUnitIncrement", "LEFT", "positiveUnitIncrement", "KP_LEFT", "positiveUnitIncrement" }),
                                      "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2),
                                      "Spinner.ancestorInputMap", new UIDefaults.LazyInputMap(spinnerAncestorInputMap),
                                      "Spinner.arrowButtonSize", new DimensionUIResource(16, 5),
                                      "Spinner.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "Spinner.editorBorderPainted", Boolean.FALSE,
                                      "Spinner.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "SplitPane.ancestorInputMap"new UIDefaults.LazyInputMap(splitPaneAncestorInputMap),
                                      "SplitPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getSplitPaneBorder"),
                                      "SplitPane.dividerSize", new Integer(7),
                                      "SplitPaneDivider.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getSplitPaneDividerBorder"),
                                      "TabbedPane.ancestorInputMap"new UIDefaults.LazyInputMap(tabbedPaneAncestorInputMap),
                                      "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3),
                                      "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(tabbedPaneFocusInputMap),
                                      "TabbedPane.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),
                                      "TabbedPane.tabAreaInsets", new InsetsUIResource(3, 2, 0, 2),
                                      "TabbedPane.tabInsets", new InsetsUIResource(0, 4, 1, 4),
                                      "TabbedPane.tabRunOverlay", new Integer(2),
                                      "TabbedPane.textIconGap", new Integer(4),
                                      "Table.ancestorInputMap", new UIDefaults.LazyInputMap(tableAncestorInputMap),
                                      "Table.ancestorInputMap.RightToLeft", new UIDefaults.LazyInputMap(tableAncestorInputMapRightToLeft),
                                      "Table.focusCellHighlightBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$LineBorderUIResource", new Object[] {new ColorUIResource(Color.BLACK) }),
                                      "Table.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "Table.scrollPaneBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getLoweredBevelBorderUIResource"),
                                      "TableHeader.cellBorder", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource$BevelBorderUIResource", new Object[] {new Integer(0), null, null, null, null}),
                                      "TableHeader.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "TextArea.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "TextArea.caretBlinkRate", BLINK_RATE,
                                      "TextArea.font", lazyValueForFont("MonoSpaced", Font.PLAIN, 12),
                                      "TextArea.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "TextField.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getTextFieldBorder"),
                                      "TextField.caretBlinkRate", BLINK_RATE,
                                      "TextField.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "TextField.margin", new InsetsUIResource(0, 0, 0, 0),
                                      "TextPane.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders$MarginBorder"),
                                      "TextPane.caretBlinkRate", BLINK_RATE,
                                      "TextPane.font", lazyValueForFont("Serif", Font.PLAIN, 12),
                                      "TextPane.margin", new InsetsUIResource(3, 3, 3, 3),
                                      "TitledBorder.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getEtchedBorderUIResource"),
                                      "TitledBorder.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToggleButton.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.basic.BasicBorders", "getToggleButtonBorder"),
                                      "ToggleButton.focusInputMap"new UIDefaults.LazyInputMap(toggleButtonFocusInputMap),
                                      "ToggleButton.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14),
                                      "ToggleButton.textIconGap", new Integer(4),
                                      "ToggleButton.textShiftOffset", new Integer(0),
                                      "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(toolBarAncestorInputMap),
                                      "ToolBar.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getEtchedBorderUIResource"),
                                      "ToolBar.font", lazyValueForFont("Dialog", Font.PLAIN, 12),
                                      "ToolBar.separatorSize", new DimensionUIResource(10, 10),
                                      "ToolTip.border", new UIDefaults.ProxyLazyValue("javax.swing.plaf.BorderUIResource", "getBlackLineBorderUIResource"),
                                      "ToolTip.font", lazyValueForFont("SansSerif", Font.PLAIN, 12),
                                      "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {"ESCAPE", "cancel" }),
                                      "Tree.changeSelectionWithFocus", Boolean.TRUE,
                                      "Tree.closedIcon", makeIcon(BasicLookAndFeel.class, "icons/TreeClosed.gif"),
View Full Code Here

        UIManager.put("OptionPane.messageAreaBorder", messageAreaBorder);
        messageAreaBorder = new BorderUIResource(BorderFactory.createEmptyBorder(4, 4, 4, 4));
        UIManager.put("OptionPane.messageAreaBorder", messageAreaBorder);
        Border border = new BorderUIResource(BorderFactory.createEmptyBorder(1, 1, 1, 1));
        UIManager.put("OptionPane.border", border);
        Dimension minimumSize = new DimensionUIResource(123, 456);
        UIManager.put("OptionPane.minimumSize", minimumSize);
        pane.setUI(paneUI);
        assertNull(paneUI.getPreferredSize(null));
        Dimension preferredSize = paneUI.getPreferredSize(pane);
        assertNotNull(preferredSize);
View Full Code Here

        UIManager.put("OptionPane.messageForeground", new ColorUIResource(Color.green));
        Font font = new FontUIResource(pane.getFont().deriveFont(100f));
        UIManager.put("OptionPane.font", font);
        Border border = new BorderUIResource(BorderFactory.createEmptyBorder(1, 1, 1, 1));
        UIManager.put("OptionPane.border", border);
        Dimension minimumSize = new DimensionUIResource(123, 456);
        UIManager.put("OptionPane.minimumSize", minimumSize);
        pane.setUI(paneUI);
        pane.setOptions(new Object[] { "button" });
        paneUI.installDefaults();
        assertEquals(Color.red, pane.getBackground());
View Full Code Here

              "org.pushingpixels.substance.internal.contrib.randelshofer.quaqua.colorchooser.Quaqua15ColorPicker",
              "org.pushingpixels.substance.internal.contrib.xoetrope.editor.color.ColorWheelPanel" },
          // "ColorChooser.swatchesDefaultRecentColor", ...,
          // "ColorChooser.swatchesRecentSwatchSize", ...,
          "ColorChooser.swatchesSwatchSize",
          new DimensionUIResource(5, 5),
          "ColorChooser.resetMnemonic",
          new Integer(-1),
          "ColorChooser.crayonsImage",
          makeImage(commonDir + "big_crayons.png"),
          "ColorChooser.textSliderGap",
View Full Code Here

          "Dimension".equalsIgnoreCase(type)
            || "java.awt.Dimension".equalsIgnoreCase(type)) {
          Dimension dim = parseDimension(element.getProperty("VALUE"));
          UIManager.put(
            element.getProperty("NAME"),
            new DimensionUIResource(dim.width, dim.height));
        } else if (
          "LineBorder".equalsIgnoreCase(type)
            || "javax.swing.border.LineBorder".equalsIgnoreCase(type)) {

          boolean rounded = false;
View Full Code Here

TOP

Related Classes of javax.swing.plaf.DimensionUIResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.