com.sun.swingset3.utilities.CollapsiblePanel Java Examples
The following examples show how to use
com.sun.swingset3.utilities.CollapsiblePanel.
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: 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 #2
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 #3
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(); }