protected void setOrientedBorder() { if(toolBar.getOrientation()==JToolBar.HORIZONTAL) LookAndFeel.installBorder(toolBar, "ToolBar.border"); else LookAndFeel.installBorder(toolBar, "ToolBar.verticalBorder"); }
/** Sets whether this JInternalFrame is to use a palette border or not */ public void setPalette(boolean isPalette) { if (isPalette) { LookAndFeel.installBorder(frame, "InternalFrame.paletteBorder"); } else { LookAndFeel.installBorder(frame, "InternalFrame.border"); } titlePane.setPalette(isPalette); }
protected void installDefaults(JSlider slider) { LookAndFeel.installBorder(slider, "Slider.border"); //$NON-NLS-1$ LookAndFeel.installColorsAndFont(slider, "Slider.background", //$NON-NLS-1$ "Slider.foreground", "Slider.font"); //$NON-NLS-1$ //$NON-NLS-2$ highlightColor = UIManager.getColor("Slider.highlight"); //$NON-NLS-1$ shadowColor = UIManager.getColor("Slider.shadow"); //$NON-NLS-1$ focusColor = UIManager.getColor("Slider.focus"); //$NON-NLS-1$ focusInsets = (Insets) UIManager.get("Slider.focusInsets"); //$NON-NLS-1$ }
private void setFrameType(String frameType) { if (frameType.equals(OPTION_DIALOG)) { LookAndFeel.installBorder(frame, "InternalFrame.optionDialogBorder"); titlePane.setPalette(false); } else if (frameType.equals(PALETTE_FRAME)) { LookAndFeel.installBorder(frame, "InternalFrame.paletteBorder"); titlePane.setPalette(true); } else { LookAndFeel.installBorder(frame, "InternalFrame.border"); titlePane.setPalette(false); } }
/** Installs the default colors, default font, default renderer, and default * editor into the JComboBox. */ protected void installDefaults() { LookAndFeel.installColorsAndFont( comboBox, "ComboBox.background", "ComboBox.foreground", "ComboBox.font"); LookAndFeel.installBorder(comboBox, "ComboBox.border"); }
protected void installDefaults() { // Note: Omitting the following line was a bug from v1.3.01 until v1.3.04 // Note: The following method turned out to be new in 1.5. Therefore // replaced with progressBar.setOpaque(true) //LookAndFeel.installProperty(progressBar, "opaque", Boolean.TRUE); // removed again in 1.3.7 (because opaque progress bar // fills bounds with track [background] color) //progressBar.setOpaque(true); LookAndFeel.installBorder(progressBar, "ProgressBar.border"); LookAndFeel.installColorsAndFont(progressBar, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font"); }
protected void installDefaults(HeaderBox p) { _painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter"); LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); LookAndFeel.installBorder(p, "Panel.border"); }
public void installBorder(JRootPane root) { int style = DecorationHelper.getWindowDecorationStyle(root); if (style == NONE) { LookAndFeel.uninstallBorder(root); } else { LookAndFeel.installBorder(root, borderKeys[style]); } }
public void uninstallDefaults() { super.uninstallDefaults(); LookAndFeel.installBorder( popupMenu, "PopupMenu.border"); popupMenu.setOpaque( true); }
protected void installDefaults() { progressBar.setOpaque(true); LookAndFeel.installBorder(progressBar, "ProgressBar.border"); LookAndFeel.installColorsAndFont(progressBar, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font"); cellLength=UIManager.getInt("ProgressBar.cellLength"); cellSpacing=UIManager.getInt("ProgressBar.cellSpacing"); selectionForeground=UIManager.getColor("ProgressBar.selectionForeground"); selectionBackground=UIManager.getColor("ProgressBar.selectionBackground"); }
protected void installDefaults() { LookAndFeel.installColorsAndFont(tipPane, "TipOfTheDay.background", "TipOfTheDay.foreground", "TipOfTheDay.font"); LookAndFeel.installBorder(tipPane, "TipOfTheDay.border"); LookAndFeel.installProperty(tipPane, "opaque", Boolean.TRUE); tipFont = UIManager.getFont("TipOfTheDay.tipFont"); }
protected void installDefaults(JSyScrollPane scrollpane) { LookAndFeel.installBorder(scrollpane, "ScrollPane.border"); //$NON-NLS-1$ LookAndFeel.installColorsAndFont(scrollpane, "ScrollPane.background", //$NON-NLS-1$ "ScrollPane.foreground", "ScrollPane.font"); //$NON-NLS-1$ //$NON-NLS-2$ Border vpBorder = scrollpane.getViewportBorder(); if ((vpBorder == null) || (vpBorder instanceof UIResource)) { vpBorder = UIManager.getBorder("ScrollPane.viewportBorder"); //$NON-NLS-1$ scrollpane.setViewportBorder(vpBorder); } LookAndFeel.installProperty(scrollpane, "opaque", Boolean.TRUE); //$NON-NLS-1$ }
/** * 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); }
protected void installDefaults() { LookAndFeel.installColorsAndFont(tipPane, "TipOfTheDay.background", "TipOfTheDay.foreground", "TipOfTheDay.font"); LookAndFeel.installBorder(tipPane, "TipOfTheDay.border"); LookAndFeel.installProperty(tipPane, "opaque", Boolean.TRUE); tipFont = UIManager.getFont("TipOfTheDay.tipFont"); }
protected void installDefaults() { LookAndFeel.installColorsAndFont(tipPane, "TipOfTheDay.background", "TipOfTheDay.foreground", "TipOfTheDay.font"); LookAndFeel.installBorder(tipPane, "TipOfTheDay.border"); LookAndFeel.installProperty(tipPane, "opaque", Boolean.TRUE); tipFont = UIManager.getFont("TipOfTheDay.tipFont"); }
@Override public void updateUI() { super.updateUI(); setLayout(new JideScrollPaneLayout.UIResource()); if (getBorder() instanceof UIResource) { LookAndFeel.installBorder(this, "JideScrollPane.border"); } }
@Override protected void installDefaults() { super.installDefaults(); // set the border of the TabbedPane LookAndFeel.installBorder(_tabPane, "JideTabbedPane.border"); _closeButtonMargin = UIDefaultsLookup.getInt("JideTabbedPane.closeButtonMargin"); _closeButtonMarginSize = UIDefaultsLookup.getInt("JideTabbedPane.closeButtonMarginSize"); _iconMarginHorizon = UIDefaultsLookup.getInt("JideTabbedPane.iconMarginHorizon"); _iconMarginVertical = UIDefaultsLookup.getInt("JideTabbedPane.iconMarginVertical"); }
@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"); }
protected void installDefaults() { JComponent contentPane = (JComponent) _popup.getContentPane(); if (contentPane != null) { Color bg = contentPane.getBackground(); if (bg instanceof UIResource) contentPane.setBackground(null); } _popup.setLayout(_dockableFrameLayout = createLayoutManager()); _popup.setBackground(UIDefaultsLookup.getColor("JideButton.background")); LookAndFeel.installBorder(_popup, "Popup.border"); }