JavaSwingLookAndFeel: Borders


Borders

Class

UIDefaults border

(only irregularly named)

internally used

TitledBorder

X (unless given)

BasicButtonUI

Prefix+".border"

BasicComboBoxUI

X

BasicComboPopup:

null (list, scroll pane)

LineBorder(black)

MetalComboBoxEditor:

custom (based on metal colors)

BasicDesktopIconUI

X

MetalDesktopIconUI:

MatteBorder

MotifDesktopIconUI

(X)

MotifBorders.FrameBorder

BasicInternalFrameUI

X

Motif uses MotifBorders.InternalFrameBorder

Windows always uninstalls border

MetalInternalFrameUI

X

"InternalFrame.paletteBorder"

"InternalFrame.optionDialogBorder"

EmptyBorder (on content pane if UIResource)

Metal(InternalFrame)TitlePane

EmptyBorder (on buttons)

MotifInternalFrameTitlePane

BevelBorder (on title)

WindowsInternalFrameTitlePane

LineBorder

BasicListUI

X

"List.focusCellHighlightBorder" (by renderer)

BasicMenuBarUI

X

BasicMenuItemUI

Prefix+".border"

BasicPopupMenuUI

X

BasicPanelUI

X

BasicProgressBarUI

X

BasicScrollBarUI

X

MotifScrollPaneUI: some fooling around with compound empty borders

BasicScrollPaneUI

X

"ScrollPane.viewportBorder"

BasicSliderUI

X

BasicSpinnerUI

X

BasicSplitPaneUI

X

for BasicSplitPaneDivider:

"SplitPaneDivider.border"

BasicTableUI

for JScrollPane: "Table.scrollPaneBorder" (broken)

"Table.focusCellHighlightBorder" (by renderer)

BasicTableHeaderUI

"TableHeader.cellBorder" (by renderer)

BasicTreeUI

"Tree.editorBorder" (by editor)

(renderer only uses border color)

BasicTextUI

Prefix+".border"

BasicToolBarUI

X

exchanges borders on child buttons:

BasicBorders' borders

BasicToolTipUI

X, "ToolTip.borderInactive"

(exchanged dynamically)

BasicOptionPaneUI

X

"OptionPane.messageAreaBorder"

"OptionPane.buttonAreaBorder"

BasicColorChooserUI

new TitledBorder

MetalFileChooserUI

EmptyBorder

WindowsFileChooserUI

EmptyBorder, BevelBorder

MetalRootPaneUI

"RootPane.frameBorder"

"RootPane.plainDialogBorder"

"RootPane.informationDialogBorder"

"RootPane.errorDialogBorder"

"RootPane.colorChooserDialogBorder"

"RootPane.fileChooserDialogBorder"

"RootPane.questionDialogBorder"

"RootPane.warningDialogBorder"

Missing: JLabel, (JViewport), JDesktopPane, JTabbedPane, separator, JTable, JTableHeader, JTree, JColorChooser, JFileChooser, JRootPane (except Metal/decorated)


(C) 2001-2009 Christian Kaufhold (swing@chka.de)