com.sun.swingset3.utilities.ArrowIcon Java Examples
The following examples show how to use
com.sun.swingset3.utilities.ArrowIcon.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SnippetNavigator.java From littleluck with Apache License 2.0 | 6 votes |
protected void applyDefaults() { if (prevButton != null) { Color arrowColor = UIManager.getColor("Label.foreground"); Color inactiveColor = UIManager.getColor("Label.disabledText"); Dimension buttonSize = new Dimension(arrowSize + 12 + overlap, arrowSize + 12); prevButton.setIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, arrowColor)); prevButton.setDisabledIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, inactiveColor)); prevButton.setPreferredSize(buttonSize); nextButton.setIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, arrowColor)); nextButton.setDisabledIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, inactiveColor)); nextButton.setPreferredSize(buttonSize); statusLabel.setOpaque(true); statusLabel.setFont(UIManager.getFont("Label.font").deriveFont(12f)); //needLabelBorder = true; needLabelBorder = false; } }
Example #2
Source File: CollapsiblePanel.java From littleluck with Apache License 2.0 | 6 votes |
protected Component createCollapseControl(String title, String tooltip) { // Add upper panel to hold collapse control Box box = Box.createHorizontalBox(); expandCheckBox = new JCheckBox(title); expandCheckBox.setOpaque(false); expandCheckBox.setBorder(new EmptyBorder(0,4,0,0)); expandCheckBox.setToolTipText(tooltip); expandCheckBox.setHorizontalTextPosition(JCheckBox.RIGHT); expandCheckBox.setSelectedIcon(new ArrowIcon(ArrowIcon.SOUTH)); expandCheckBox.setIcon(new ArrowIcon(ArrowIcon.EAST)); expandCheckBox.setSelected(isExpanded()); expandCheckBox.addChangeListener(new CollapseListener()); box.add(expandCheckBox); return box; }
Example #3
Source File: SnippetNavigator.java From beautyeye with Apache License 2.0 | 6 votes |
protected void applyDefaults() { if (prevButton != null) { Color arrowColor = UIManager.getColor("Label.foreground"); Color inactiveColor = UIManager.getColor("Label.disabledText"); Dimension buttonSize = new Dimension(arrowSize + 12 + overlap, arrowSize + 12); prevButton.setIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, arrowColor)); prevButton.setDisabledIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, inactiveColor)); prevButton.setPreferredSize(buttonSize); nextButton.setIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, arrowColor)); nextButton.setDisabledIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, inactiveColor)); nextButton.setPreferredSize(buttonSize); statusLabel.setOpaque(true); statusLabel.setFont(UIManager.getFont("Label.font").deriveFont(12f)); //needLabelBorder = true; needLabelBorder = false; } }
Example #4
Source File: CollapsiblePanel.java From beautyeye with Apache License 2.0 | 6 votes |
protected Component createCollapseControl(String title, String tooltip) { // Add upper panel to hold collapse control Box box = Box.createHorizontalBox(); expandCheckBox = new JCheckBox(title); expandCheckBox.setBorder(new EmptyBorder(0,4,0,0)); expandCheckBox.setToolTipText(tooltip); expandCheckBox.setHorizontalTextPosition(JCheckBox.RIGHT); expandCheckBox.setSelectedIcon(new ArrowIcon(ArrowIcon.SOUTH)); expandCheckBox.setIcon(new ArrowIcon(ArrowIcon.EAST)); expandCheckBox.setSelected(isExpanded()); expandCheckBox.addChangeListener(new CollapseListener()); box.add(expandCheckBox); return box; }
Example #5
Source File: SnippetNavigator.java From Darcula with Apache License 2.0 | 6 votes |
protected void applyDefaults() { if (prevButton != null) { Color arrowColor = UIManager.getColor("Label.foreground"); Color inactiveColor = UIManager.getColor("Label.disabledText"); Dimension buttonSize = new Dimension(arrowSize + 12 + overlap, arrowSize + 12); prevButton.setIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, arrowColor)); prevButton.setDisabledIcon(new ArrowIcon(ArrowIcon.WEST, arrowSize, inactiveColor)); prevButton.setPreferredSize(buttonSize); nextButton.setIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, arrowColor)); nextButton.setDisabledIcon(new ArrowIcon(ArrowIcon.EAST, arrowSize, inactiveColor)); nextButton.setPreferredSize(buttonSize); statusLabel.setOpaque(true); statusLabel.setFont(UIManager.getFont("Label.font").deriveFont(12f)); //needLabelBorder = true; needLabelBorder = false; } }
Example #6
Source File: DemoSelectorPanel.java From littleluck with Apache License 2.0 | 5 votes |
protected void applyDefaults() { expandedIcon = new ArrowIcon(ArrowIcon.SOUTH, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsedIcon = new ArrowIcon(ArrowIcon.EAST, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); setBorder(new MatteBorder(0,0,0,1, UIManager.getColor(SwingSet3.CONTROL_MID_SHADOW_KEY))); if (titlePanel != null) { titlePanel.setGradientColor1( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR1_KEY)); titlePanel.setGradientColor2( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR2_KEY)); } if (demoListLabel != null) { demoListLabel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); demoListLabel.setFont(UIManager.getFont(SwingSet3.TITLE_FONT_KEY)); } if (viewPanel != null) { viewPanel.setBackground(UIManager.getColor(SwingSet3.SUB_PANEL_BACKGROUND_KEY)); } if (collapsePanels != null) { for (CollapsiblePanel collapsePanel : collapsePanels) { collapsePanel.setFont( UIManager.getFont("CheckBox.font").deriveFont(Font.BOLD)); collapsePanel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsePanel.setExpandedIcon(expandedIcon); collapsePanel.setCollapsedIcon(collapsedIcon); } } revalidate(); }
Example #7
Source File: DemoSelectorPanel.java From beautyeye with Apache License 2.0 | 5 votes |
protected void applyDefaults() { expandedIcon = new ArrowIcon(ArrowIcon.SOUTH, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsedIcon = new ArrowIcon(ArrowIcon.EAST, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); setBorder(new MatteBorder(0,0,0,1, UIManager.getColor(SwingSet3.CONTROL_MID_SHADOW_KEY))); if (titlePanel != null) { titlePanel.setGradientColor1( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR1_KEY)); titlePanel.setGradientColor2( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR2_KEY)); } if (demoListLabel != null) { demoListLabel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); demoListLabel.setFont(UIManager.getFont(SwingSet3.TITLE_FONT_KEY)); } if (viewPanel != null) { viewPanel.setBackground(UIManager.getColor(SwingSet3.SUB_PANEL_BACKGROUND_KEY)); } if (collapsePanels != null) { for (CollapsiblePanel collapsePanel : collapsePanels) { collapsePanel.setFont( UIManager.getFont("CheckBox.font").deriveFont(Font.BOLD)); collapsePanel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsePanel.setExpandedIcon(expandedIcon); collapsePanel.setCollapsedIcon(collapsedIcon); } } revalidate(); }
Example #8
Source File: DemoSelectorPanel.java From Darcula with Apache License 2.0 | 5 votes |
protected void applyDefaults() { expandedIcon = new ArrowIcon(ArrowIcon.SOUTH, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsedIcon = new ArrowIcon(ArrowIcon.EAST, UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); setBorder(new MatteBorder(0,0,0,1, UIManager.getColor(SwingSet3.CONTROL_MID_SHADOW_KEY))); if (titlePanel != null) { titlePanel.setGradientColor1( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR1_KEY)); titlePanel.setGradientColor2( UIManager.getColor(SwingSet3.TITLE_GRADIENT_COLOR2_KEY)); } if (demoListLabel != null) { demoListLabel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); demoListLabel.setFont(UIManager.getFont(SwingSet3.TITLE_FONT_KEY)); } if (viewPanel != null) { viewPanel.setBackground(UIManager.getColor(SwingSet3.SUB_PANEL_BACKGROUND_KEY)); } if (collapsePanels != null) { for (CollapsiblePanel collapsePanel : collapsePanels) { collapsePanel.setFont( UIManager.getFont("CheckBox.font").deriveFont(Font.BOLD)); collapsePanel.setForeground(UIManager.getColor(SwingSet3.TITLE_FOREGROUND_KEY)); collapsePanel.setExpandedIcon(expandedIcon); collapsePanel.setCollapsedIcon(collapsedIcon); } } revalidate(); }