/** * Create a new AbstractRegionPainter */ protected AbstractRegionPainter() { focusInsets = UIManager.getInsets("seaGlassFocusInsets"); }
protected Insets getCaptionInsets() { return UIManager.getInsets("JXTitledPanel.captionInsets"); }
protected Insets getCaptionInsets() { return UIManager.getInsets("JXTitledPanel.captionInsets"); }
protected Insets getCaptionInsets() { return UIManager.getInsets("JXTitledPanel.captionInsets"); }
protected void installDefaults() { LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font"); tabAreaBackground = UIManager.getColor("TabbedPane.tabAreaBackground"); selectedColor = UIManager.getColor("TabbedPane.selected"); textIconGap = UIManager.getInt("TabbedPane.textIconGap"); tabInsets = UIManager.getInsets("TabbedPane.tabInsets"); selectedTabPadInsets = UIManager.getInsets("TabbedPane.selectedTabPadInsets"); tabAreaInsets = UIManager.getInsets("TabbedPane.tabAreaInsets"); contentBorderInsets = UIManager.getInsets("TabbedPane.contentBorderInsets"); tabRunOverlay = UIManager.getInt("TabbedPane.tabRunOverlay"); tabPane.setBorder(UIManager.getBorder("TabbedPane.boder")); }
/** * Adds the given JComponent as a decoration on the right of the title * @param decoration */ @Override public void setRightDecoration(JComponent decoration) { if (right != null) topPanel.remove(right); right = decoration; if (right != null) { topPanel.add(decoration, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.rightDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the left of the title * @param decoration */ @Override public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.leftDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the left of the title * @param decoration */ @Override public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.leftDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the right of the title * @param decoration */ @Override public void setRightDecoration(JComponent decoration) { if (right != null) topPanel.remove(right); right = decoration; if (right != null) { topPanel.add(decoration, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.rightDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the left of the title * @param decoration */ @Override public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.leftDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the left of the title * @param decoration */ @Override public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.leftDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the right of the title * @param decoration */ @Override public void setRightDecoration(JComponent decoration) { if (right != null) topPanel.remove(right); right = decoration; if (right != null) { topPanel.add(decoration, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.rightDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the right of the title * @param decoration */ @Override public void setRightDecoration(JComponent decoration) { if (right != null) topPanel.remove(right); right = decoration; if (right != null) { topPanel.add(decoration, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.rightDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the right of the title * @param decoration */ @Override public void setRightDecoration(JComponent decoration) { if (right != null) topPanel.remove(right); right = decoration; if (right != null) { topPanel.add(decoration, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.rightDecorationInsets"), 0, 0)); } }
/** * Adds the given JComponent as a decoration on the left of the title * @param decoration */ @Override public void setLeftDecoration(JComponent decoration) { if (left != null) topPanel.remove(left); left = decoration; if (left != null) { topPanel.add(left, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, UIManager.getInsets("JXTitledPanel.leftDecorationInsets"), 0, 0)); } }
/** * Updates this button's properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateButtonUI() { if ((getMargin() == null) || (getMargin() instanceof UIResource)) { Insets insets = UIManager.getInsets(COLUMN_CONTROL_BUTTON_MARGIN_KEY); setMargin(insets); } }
/** * Updates this button's properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateButtonUI() { if ((getMargin() == null) || (getMargin() instanceof UIResource)) { Insets insets = UIManager.getInsets(COLUMN_CONTROL_BUTTON_MARGIN_KEY); setMargin(insets); } }
/** * Updates this button's properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateButtonUI() { if ((getMargin() == null) || (getMargin() instanceof UIResource)) { Insets insets = UIManager.getInsets(COLUMN_CONTROL_BUTTON_MARGIN_KEY); setMargin(insets); } }
/** * Updates this button's properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateButtonUI() { if ((getMargin() == null) || (getMargin() instanceof UIResource)) { Insets insets = UIManager.getInsets(COLUMN_CONTROL_BUTTON_MARGIN_KEY); setMargin(insets); } }
/** * Updates this button's properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateButtonUI() { if ((getMargin() == null) || (getMargin() instanceof UIResource)) { Insets insets = UIManager.getInsets(COLUMN_CONTROL_BUTTON_MARGIN_KEY); setMargin(insets); } }