Package org.flexdock.view

Examples of org.flexdock.view.Button


    private class ToggleListener implements ItemListener {
        public void itemStateChanged(ItemEvent e) {
            if(e.getStateChange()!=ItemEvent.SELECTED && e.getStateChange()!=ItemEvent.DESELECTED)
                return;

            Button button = (Button)e.getSource();
            updateTooltip(button);
        }
View Full Code Here


        Component[] c = titlebar.getComponents();
        for (int i = 0; i < c.length; i++) {
            if (!(c[i] instanceof Button))
                continue;

            Button b = (Button) c[i];
            buttonWidth = b.getHeight();
            break;
        }

        int paintY = (getButtonMargin() + buttonWidth) * 2;
        paintY += 5;
View Full Code Here

    private void reconfigureActions(JComponent c) {
        Component[] c1 = c.getComponents();
        for (int i = 0; i < c1.length; i++) {
            if (!(c1[i] instanceof Button))
                continue;
            Button b = (Button) c1[i];
            configureAction(b.getAction());
        }
    }
View Full Code Here

TOP

Related Classes of org.flexdock.view.Button

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.