Package org.flexdock.view

Examples of org.flexdock.view.Titlebar


public abstract class ToolWindow extends View implements DockingListener {
    public ToolWindow(String title) {
        super(title);
        getContentPane().setLayout(new BorderLayout());
        setTitle(title);
        Titlebar bar = getTitlebar();
        bar.setText(title);
        Icon i = getIcon();
        if (i != null) {
            getDockingProperties().setDockbarIcon(i);
            getDockingProperties().setTabIcon(i);
            bar.setIcon(i);
        }
        if (isCloseable())
            addAction(DockingConstants.CLOSE_ACTION);
        if (isPinnable())
            addAction(DockingConstants.PIN_ACTION);
View Full Code Here


    public void uninstallUI(JComponent c) {
        super.uninstallUI(c);
    }

    public void paint(Graphics g, JComponent jc) {
        Titlebar titlebar = (Titlebar) jc;
        paintBackground(g, titlebar);
        paintIcon(g, titlebar);
        paintTitle(g, titlebar);
        paintBorder(g, titlebar);
    }
View Full Code Here

TOP

Related Classes of org.flexdock.view.Titlebar

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.