protected void installDefaults(JSeparator s) { LookAndFeel.installColors( s, "Separator.background", "Separator.foreground"); }
protected void installDefaults(JSeparator s) { LookAndFeel.installColors(s, "Separator.background", "Separator.foreground"); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
@Override public void updateUI() { super.updateUI(); Border textFieldBorder = UIDefaultsLookup.getBorder("TextField.border"); if (textFieldBorder != null) { boolean big = textFieldBorder.getBorderInsets(this).top >= 2; if (big) setBorder(textFieldBorder); else setBorder(BorderFactory.createCompoundBorder(textFieldBorder, BorderFactory.createEmptyBorder(2, 2, 2, 2))); } else { setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED), BorderFactory.createEmptyBorder(2, 2, 2, 2))); } if (isEnabled()) { LookAndFeel.installColors(this, "TextField.background", "TextField.foreground"); } else { LookAndFeel.installColors(this, "TextField.disableBackground", "TextField.inactiveForeground"); } if (textFieldBorder != null && _textField != null) { _textField.setBorder(BorderFactory.createEmptyBorder()); } setEnabled(isEnabled()); }
@Override public void updateUI() { super.updateUI(); if (UIDefaultsLookup.get("Theme.painter") == null) { LookAndFeelFactory.installJideExtension(); } LookAndFeel.installColors(this, "ContentContainer.background", "ContentContainer.foreground"); _painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter"); }
@Override protected void installDefaults() { super.installDefaults(); LookAndFeel.installBorder(progressBar, "MeterProgressBar.border"); LookAndFeel.installColors(progressBar, "MeterProgressBar.background", "MeterProgressBar.foreground"); _cellForeground = UIDefaultsLookup.getColor("MeterProgressBar.cellForeground"); _cellBackground = UIDefaultsLookup.getColor("MeterProgressBar.cellBackground"); _cellLength = UIDefaultsLookup.getInt("MeterProgressBar.cellLength"); _cellSpacing = UIDefaultsLookup.getInt("MeterProgressBar.cellSpacing"); }
LookAndFeel.installColors( scrollpane.getViewport(), "Table.background",
LookAndFeel.installColors(scrollpane.getViewport(), "Table.background", "Table.foreground");