java manager 如何使用_关于JAVA中UIManager的使用。。请高手指教

展开全部

The following is a list of all valid keys for the UIManager.getDefaults() object. I'm not sure which of these is the key you need, but you may take a look at the call

ColorUIResource cuir =

UIManager.getDefaults().get("activeCaption");

...which seems to return a ColorUIResource which, functionally, is just a Color object. Best of luck to you. :)

-- List follows --

AbstractButton.clickText

AbstractDocument.additionText

AbstractDocument.deletionText

AbstractDocument.redoText

AbstractDocument.styleChangeText

AbstractDocument.undoText

AbstractUndoableEdit.redoText

AbstractUndoableEdit.undoText

Button.background

Button.border

Button.disabledText

Button.focus

Button.focusInputMap

Button.font

Button.foreground

Button.margin

Button.select

Button.textIconGap

Button.textShiftOffset

ButtonUI

CheckBox.background

CheckBox.border

CheckBox.disabledText

CheckBox.focus

CheckBox.focusInputMap

CheckBox.font

CheckBox.foreground

CheckBox.icon

CheckBox.margin

CheckBox.textIconGap

CheckBox.textShiftOffset

CheckBoxMenuItem.acceleratorFont

CheckBoxMenuItem.acceleratorForeground

CheckBoxMenuItem.acceleratorSelectionForeground

CheckBoxMenuItem.arrowIcon

CheckBoxMenuItem.background

CheckBoxMenuItem.border

CheckBoxMenuItem.borderPainted

CheckBoxMenuItem.checkIcon

CheckBoxMenuItem.disabledForeground

CheckBoxMenuItem.font

CheckBoxMenuItem.foreground

CheckBoxMenuItem.margin

CheckBoxMenuItem.selectionBackground

CheckBoxMenuItem.selectionForeground

CheckBoxMenuItemUI

CheckBoxUI

Checkbox.select

ColorChooser.background

ColorChooser.cancelText

ColorChooser.font

ColorChooser.foreground

ColorChooser.hsbBlueText

ColorChooser.hsbBrightnessText

ColorChooser.hsbGreenText

ColorChooser.hsbHueText

ColorChooser.hsbNameText

ColorChooser.hsbRedText

ColorChooser.hsbSaturationText

ColorChooser.okText

ColorChooser.previewText

ColorChooser.resetText

ColorChooser.rgbBlueMnemonic

ColorChooser.rgbBlueText

ColorChooser.rgbGreenMnemonic

ColorChooser.rgbGreenText

ColorChooser.rgbNameText

ColorChooser.rgbRedMnemonic

ColorChooser.rgbRedText

ColorChooser.sampleText

ColorChooser.swatchesDefaultRecentColor

ColorChooser.swatchesNameText

ColorChooser.swatchesRecentSwatchSize

ColorChooser.swatchesRecentText

ColorChooser.swatchesSwatchSize

ColorChooserUI

ComboBox.ancestorInputMap

ComboBox.background

ComboBox.disabledBackground

ComboBox.disabledForeground

ComboBox.font

ComboBox.foreground

ComboBox.listBackground

ComboBox.listForeground

ComboBox.selectionBackground

ComboBox.selectionForeground

ComboBox.togglePopupText

ComboBoxUI

Desktop.ancestorInputMap

Desktop.background

DesktopIcon.background

DesktopIcon.border

DesktopIcon.font

DesktopIcon.foreground

DesktopIconUI

DesktopPaneUI

EditorPane.background

EditorPane.border

EditorPane.caretBlinkRate

EditorPane.caretForeground

EditorPane.focusInputMap

EditorPane.font

EditorPane.foreground

EditorPane.inactiveForeground

EditorPane.keyBindings

EditorPane.margin

EditorPane.selectionBackground

EditorPane.selectionForeground

EditorPaneUI

FileChooser.acceptAllFileFilterText

FileChooser.ancestorInputMap

FileChooser.cancelButtonMnemonic

FileChooser.cancelButtonText

FileChooser.cancelButtonToolTipText

FileChooser.detailsViewButtonAccessibleName

FileChooser.detailsViewButtonToolTipText

FileChooser.detailsViewIcon

FileChooser.directoryDescriptionText

FileChooser.fileDescriptionText

FileChooser.fileNameLabelMnemonic

FileChooser.fileNameLabelText

FileChooser.filesOfTypeLabelMnemonic

FileChooser.filesOfTypeLabelText

FileChooser.helpButtonMnemonic

FileChooser.helpButtonText

FileChooser.helpButtonToolTipText

FileChooser.homeFolderAccessibleName

FileChooser.homeFolderIcon

FileChooser.homeFolderToolTipText

FileChooser.listViewButtonAccessibleName

FileChooser.listViewButtonToolTipText

FileChooser.listViewIcon

FileChooser.lookInLabelMnemonic

FileChooser.lookInLabelText

FileChooser.newFolderAccessibleName

FileChooser.newFolderErrorSeparator

FileChooser.newFolderErrorText

FileChooser.newFolderIcon

FileChooser.newFolderToolTipText

FileChooser.openButtonMnemonic

FileChooser.openButtonText

FileChooser.openButtonToolTipText

FileChooser.openDialogTitleText

FileChooser.other.newFolder

FileChooser.other.newFolder.subsequent

FileChooser.saveButtonMnemonic

FileChooser.saveButtonText

FileChooser.saveButtonToolTipText

FileChooser.saveDialogTitleText

FileChooser.upFolderAccessibleName

FileChooser.upFolderIcon

FileChooser.upFolderToolTipText

FileChooser.updateButtonMnemonic

FileChooser.updateButtonText

FileChooser.updateButtonToolTipText

FileChooser.win32.newFolder

FileChooser.win32.newFolder.subsequent

FileChooserUI

FileView.computerIcon

FileView.directoryIcon

FileView.fileIcon

FileView.floppyDriveIcon

FileView.hardDriveIcon

FocusManagerClassName

FormView.resetButtonText

FormView.submitButtonText

InternalFrame.activeTitleBackground

InternalFrame.activeTitleForeground

InternalFrame.border

InternalFrame.closeIcon

InternalFrame.font

InternalFrame.icon

InternalFrame.iconifyIcon

InternalFrame.inactiveTitleBackground

InternalFrame.inactiveTitleForeground

InternalFrame.maximizeIcon

InternalFrame.minimizeIcon

InternalFrame.optionDialogBorder

InternalFrame.paletteBorder

InternalFrame.paletteCloseIcon

InternalFrame.paletteTitleHeight

InternalFrame.titleFont

InternalFrame.windowBindings

InternalFrameTitlePane.closeButtonAccessibleName

InternalFrameTitlePane.closeButtonText

InternalFrameTitlePane.iconifyButtonAccessibleName

InternalFrameTitlePane.maximizeButtonAccessibleName

InternalFrameTitlePane.maximizeButtonText

InternalFrameTitlePane.minimizeButtonText

InternalFrameTitlePane.moveButtonText

InternalFrameTitlePane.restoreButtonText

InternalFrameTitlePane.sizeButtonText

InternalFrameUI

Label.background

Label.disabledForeground

Label.disabledShadow

Label.font

Label.foreground

LabelUI

List.background

List.cellRenderer

List.focusCellHighlightBorder

List.focusInputMap

List.font

List.foreground

List.selectionBackground

List.selectionForeground

ListUI

Menu.acceleratorFont

Menu.acceleratorForeground

Menu.acceleratorSelectionForeground

Menu.arrowIcon

Menu.background

Menu.border

Menu.borderPainted

Menu.checkIcon

Menu.consumesTabs

Menu.disabledForeground

Menu.font

Menu.foreground

Menu.margin

Menu.selectedWindowInputMapBindings

Menu.selectionBackground

Menu.selectionForeground

MenuBar.background

MenuBar.border

MenuBar.font

MenuBar.foreground

MenuBar.windowBindings

MenuBarUI

MenuItem.acceleratorDelimiter

MenuItem.acceleratorFont

MenuItem.acceleratorForeground

MenuItem.acceleratorSelectionForeground

MenuItem.arrowIcon

MenuItem.background

MenuItem.border

MenuItem.borderPainted

MenuItem.checkIcon

MenuItem.disabledForeground

MenuItem.font

MenuItem.foreground

MenuItem.margin

MenuItem.selectionBackground

MenuItem.selectionForeground

MenuItemUI

MenuUI

OptionPane.background

OptionPane.border

OptionPane.buttonAreaBorder

OptionPane.cancelButtonText

OptionPane.errorIcon

OptionPane.font

OptionPane.foreground

OptionPane.informationIcon

OptionPane.messageAreaBorder

OptionPane.messageForeground

OptionPane.minimumSize

OptionPane.noButtonText

OptionPane.okButtonText

OptionPane.questionIcon

OptionPane.titleText

OptionPane.warningIcon

OptionPane.windowBindings

OptionPane.yesButtonText

OptionPaneUI

Panel.background

Panel.font

Panel.foreground

PanelUI

PasswordField.background

PasswordField.border

PasswordField.caretBlinkRate

PasswordField.caretForeground

PasswordField.focusInputMap

PasswordField.font

PasswordField.foreground

PasswordField.inactiveForeground

PasswordField.keyBindings

PasswordField.margin

PasswordField.selectionBackground

PasswordField.selectionForeground

PasswordFieldUI

PopupMenu.background

PopupMenu.border

PopupMenu.font

PopupMenu.foreground

PopupMenu.selectedWindowInputMapBindings

PopupMenuSeparatorUI

PopupMenuUI

ProgressBar.background

ProgressBar.backgroundHighlight

ProgressBar.border

ProgressBar.cellLength

ProgressBar.cellSpacing

ProgressBar.font

ProgressBar.foreground

ProgressBar.foregroundHighlight

ProgressBar.selectionBackground

ProgressBar.selectionForeground

ProgressBarUI

ProgressMonitor.progressText

RadioButton.background

RadioButton.border

RadioButton.disabledText

RadioButton.focus

RadioButton.focusInputMap

RadioButton.font

RadioButton.foreground

RadioButton.icon

RadioButton.margin

RadioButton.select

RadioButton.textIconGap

RadioButton.textShiftOffset

RadioButtonMenuItem.acceleratorFont

RadioButtonMenuItem.acceleratorForeground

RadioButtonMenuItem.acceleratorSelectionForeground

RadioButtonMenuItem.arrowIcon

RadioButtonMenuItem.background

RadioButtonMenuItem.border

RadioButtonMenuItem.borderPainted

RadioButtonMenuItem.checkIcon

RadioButtonMenuItem.disabledForeground

RadioButtonMenuItem.font

RadioButtonMenuItem.foreground

RadioButtonMenuItem.margin

RadioButtonMenuItem.selectionBackground

RadioButtonMenuItem.selectionForeground

RadioButtonMenuItemUI

RadioButtonUI

RootPane.defaultButtonWindowKeyBindings

RootPaneUI

ScrollBar.allowsAbsolutePositioning

ScrollBar.background

ScrollBar.darkShadow

ScrollBar.focusInputMap

ScrollBar.foreground

ScrollBar.highlight

ScrollBar.maximumThumbSize

ScrollBar.minimumThumbSize

ScrollBar.shadow

ScrollBar.thumb

ScrollBar.thumbDarkShadow

ScrollBar.thumbHighlight

ScrollBar.thumbLightShadow

ScrollBar.thumbShadow

ScrollBar.track

ScrollBar.trackHighlight

ScrollBar.width

ScrollBarUI

ScrollPane.ancestorInputMap

ScrollPane.background

ScrollPane.border

ScrollPane.font

ScrollPane.foreground

ScrollPaneUI

Separator.background

Separator.foreground

Separator.highlight

Separator.shadow

SeparatorUI

Slider.background

Slider.focus

Slider.focusInputMap

Slider.focusInsets

Slider.foreground

Slider.highlight

Slider.horizontalThumbIcon

Slider.majorTickLength

Slider.shadow

Slider.trackWidth

Slider.verticalThumbIcon

SliderUI

SplitPane.ancestorInputMap

SplitPane.background

SplitPane.border

SplitPane.dividerSize

SplitPane.highlight

SplitPane.leftButtonText

SplitPane.rightButtonText

SplitPane.shadow

SplitPaneDivider.border

SplitPaneUI

StandardDialogUI

TabbedPane.ancestorInputMap

TabbedPane.background

TabbedPane.contentBorderInsets

TabbedPane.darkShadow

TabbedPane.focus

TabbedPane.focusInputMap

TabbedPane.font

TabbedPane.foreground

TabbedPane.highlight

TabbedPane.lightHighlight

TabbedPane.selectHighlight

TabbedPane.selected

TabbedPane.selectedTabPadInsets

TabbedPane.shadow

TabbedPane.tabAreaBackground

TabbedPane.tabAreaInsets

TabbedPane.tabInsets

TabbedPane.tabRunOverlay

TabbedPane.textIconGap

TabbedPaneUI

Table.ancestorInputMap

Table.background

Table.focusCellBackground

Table.focusCellForeground

Table.focusCellHighlightBorder

Table.font

Table.foreground

Table.gridColor

Table.scrollPaneBorder

Table.selectionBackground

Table.selectionForeground

TableHeader.background

TableHeader.cellBorder

TableHeader.font

TableHeader.foreground

TableHeaderUI

TableUI

TextArea.background

TextArea.border

TextArea.caretBlinkRate

TextArea.caretForeground

TextArea.focusInputMap

TextArea.font

TextArea.foreground

TextArea.inactiveForeground

TextArea.keyBindings

TextArea.margin

TextArea.selectionBackground

TextArea.selectionForeground

TextAreaUI

TextField.background

TextField.border

TextField.caretBlinkRate

TextField.caretForeground

TextField.focusInputMap

TextField.font

TextField.foreground

TextField.inactiveForeground

TextField.keyBindings

TextField.margin

TextField.selectionBackground

TextField.selectionForeground

TextFieldUI

TextPane.background

TextPane.border

TextPane.caretBlinkRate

TextPane.caretForeground

TextPane.focusInputMap

TextPane.font

TextPane.foreground

TextPane.inactiveForeground

TextPane.keyBindings

TextPane.margin

TextPane.selectionBackground

TextPane.selectionForeground

TextPaneUI

TitledBorder.border

TitledBorder.font

TitledBorder.titleColor

ToggleButton.background

ToggleButton.border

ToggleButton.disabledBackground

ToggleButton.disabledSelectedBackground

ToggleButton.disabledSelectedText

ToggleButton.disabledText

ToggleButton.focus

ToggleButton.focusInputMap

ToggleButton.font

ToggleButton.foreground

ToggleButton.margin

ToggleButton.select

ToggleButton.text

ToggleButton.textIconGap

ToggleButton.textShiftOffset

ToggleButtonUI

ToolBar.ancestorInputMap

ToolBar.background

ToolBar.border

ToolBar.dockingBackground

ToolBar.dockingForeground

ToolBar.floatingBackground

ToolBar.floatingForeground

ToolBar.font

ToolBar.foreground

ToolBar.separatorSize

ToolBarSeparatorUI

ToolBarUI

ToolTip.background

ToolTip.border

ToolTip.font

ToolTip.foreground

ToolTipUI

Tree.ancestorInputMap

Tree.background

Tree.changeSelectionWithFocus

Tree.closedIcon

Tree.collapsedIcon

Tree.drawsFocusBorderAroundIcon

Tree.editorBorder

Tree.expandedIcon

Tree.focusInputMap

Tree.font

Tree.foreground

Tree.hash

Tree.leafIcon

Tree.leftChildIndent

Tree.line

Tree.openIcon

Tree.rightChildIndent

Tree.rowHeight

Tree.scrollsOnExpand

Tree.selectionBackground

Tree.selectionBorderColor

Tree.selectionForeground

Tree.textBackground

Tree.textForeground

TreeUI

Viewport.background

Viewport.font

Viewport.foreground

ViewportUI

activeCaption

activeCaptionBorder

activeCaptionText

control

controlDkShadow

controlHighlight

controlLtHighlight

controlShadow

controlText

desktop

inactiveCaption

inactiveCaptionBorder

inactiveCaptionText

info

infoText

menu

menuText

scrollbar

text

textHighlight

textHighlightText

textInactiveText

textText

window

windowBorder

windowText

本回答由提问者推荐

2Q==

已赞过

已踩过<

你对这个回答的评价是?

评论

收起

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值