/** Installs the default colors, border, and painter of the task pane container. */ protected void installDefaults() { LookAndFeel.installColors( taskPane, "TaskPaneContainer.background", "TaskPaneContainer.foreground"); LookAndFeel.installBorder(taskPane, "TaskPaneContainer.border"); LookAndFeelAddons.installBackgroundPainter(taskPane, "TaskPaneContainer.backgroundPainter"); LookAndFeel.installProperty(taskPane, "opaque", Boolean.TRUE); }
public static void installColorsAndFont( final JComponent comp, final String background, final String foreground, final String fontName) { installColors(comp, background, foreground); Font font = comp.getFont(); if (Utilities.isUIResource(font)) { comp.setFont(UIManager.getFont(fontName)); } }