Border blackLineBorder = new BorderUIResource(new LineBorder(
getBlack()));
Border whiteLineBorder = new BorderUIResource(new LineBorder(
getWhite()));
Object textBorder = new BorderUIResource(new CompoundBorder(
blackLineBorder, new BasicBorders.MarginBorder()));
Object[] defaults = new Object[] {
"ToolTip.border", blackLineBorder,
"TitledBorder.border", blackLineBorder,
"TextField.border", textBorder,
"PasswordField.border", textBorder,
"TextArea.border", textBorder,
"TextPane.border", textBorder,
"EditorPane.border", textBorder,
"ComboBox.background", getWindowBackground(),
"ComboBox.foreground", getUserTextColor(),
"ComboBox.selectionBackground", getTextHighlightColor(),
"ComboBox.selectionForeground", getHighlightedTextColor(),
"ProgressBar.foreground", getUserTextColor(),
"ProgressBar.background", getWindowBackground(),
"ProgressBar.selectionForeground", getWindowBackground(),
"ProgressBar.selectionBackground", getUserTextColor(),
"OptionPane.errorDialog.border.background",
getPrimary1(),
"OptionPane.errorDialog.titlePane.foreground",
getPrimary3(),
"OptionPane.errorDialog.titlePane.background",
getPrimary1(),
"OptionPane.errorDialog.titlePane.shadow",
getPrimary2(),
"OptionPane.questionDialog.border.background",
getPrimary1(),
"OptionPane.questionDialog.titlePane.foreground",
getPrimary3(),
"OptionPane.questionDialog.titlePane.background",
getPrimary1(),
"OptionPane.questionDialog.titlePane.shadow",
getPrimary2(),
"OptionPane.warningDialog.border.background",
getPrimary1(),
"OptionPane.warningDialog.titlePane.foreground",
getPrimary3(),
"OptionPane.warningDialog.titlePane.background",
getPrimary1(),
"OptionPane.warningDialog.titlePane.shadow",
getPrimary2(),
};
table.putDefaults(defaults);