Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicLabelUI


            setForeground(Color.LIGHT_GRAY);
            setOpaque(false);
            setFocusable(false);
            setIcon(tab.getIcon());
            setUI(new BasicLabelUI(){
                protected void paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY) {
                    if (pressed && inside)
                        super.paintEnabledText(l, g, s, textX + 1, textY + 1);
                    else
                        super.paintEnabledText(l, g, s, textX, textY);
View Full Code Here


            titleLabel.setName(name + ".title");
            titleLabel.setForeground(resourceManager.getColor(MyDoggyKeySpace.TWTB_TAB_FOREGROUND_UNSELECTED));
            titleLabel.setOpaque(false);
            titleLabel.setFocusable(false);
            titleLabel.setIcon(tab.getIcon());
            titleLabel.setUI(new BasicLabelUI() {

                protected void paintEnabledText(JLabel l, Graphics g, String s, int textX, int textY) {
                    if (pressed && inside)
                        super.paintEnabledText(l, g, s, textX + 1, textY + 1);
                    else
View Full Code Here

            titleLabel.setForeground(resourceManager.getColor(MyDoggyKeySpace.TWTB_TAB_FOREGROUND_UNSELECTED));
            titleLabel.setOpaque(false);
            titleLabel.setFocusable(false);
            titleLabel.setIcon(tab.getIcon());
            titleLabel.setFont(titleLabel.getFont().deriveFont(resourceManager.getFloat("toolwindow.title.font.size", 12)));
            titleLabel.setUI(new BasicLabelUI() {

                public void update(Graphics g, JComponent c) {
                    if (tab.isFlashing() && toolWindow.isVisible()) {
                        if (flashingState) {
                            titleLabel.setForeground(resourceManager.getColor(MyDoggyKeySpace.TWTB_TAB_FOREGROUND_SELECTED));
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicLabelUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.