Examples of DcButton


Examples of net.datacrow.console.components.DcButton

        menu.setIcon(icon);
        return menu;
    }

    public static final DcButton getTableHeader(String title) {
        DcButton button = getButton(title);
        button.setFont(ComponentFactory.getStandardFont());
        button.setPreferredSize(new Dimension(button.getWidth(), 20));
        return button;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcButton

        button.setPreferredSize(new Dimension(button.getWidth(), 20));
        return button;
    }

    public static final DcButton getIconButton(ImageIcon icon) {
        DcButton button = getButton("");
        button.setIcon(icon);
        button.setFont(getSystemFont());
       
        button.setMaximumSize(iconButtonSize);
        button.setMinimumSize(iconButtonSize);
        button.setPreferredSize(iconButtonSize);
       
        return button;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcButton

       
        return button;
    }
   
    public static final DcButton getButton(ImageIcon icon) {
        DcButton button = getButton("");
        button.setIcon(icon);
        button.setFont(getSystemFont());
        return button;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcButton

    public static final DcButton getButton(String buttonText) {
      return getButton(buttonText, null);
    }
   
    public static final DcButton getButton(String buttonText, ImageIcon icon) {
        DcButton button = icon == null ? new DcButton() : new DcButton(icon);
        ToolTipManager.sharedInstance().registerComponent(button);
        button.setName("bt" + buttonText);
        button.setText(buttonText);
       
        int height = getPreferredButtonHeight();
       
        if (buttonText != null) {
            if (buttonText.equals(DcResources.getText("lblSave")))
                button.setMnemonic('S');
            else if (buttonText.equals(DcResources.getText("lblCancel")))
                button.setMnemonic('C');
            else if (buttonText.equals(DcResources.getText("lblClose")))
                button.setMnemonic('C');
            else if (buttonText.equals(DcResources.getText("lblRun")))
                button.setMnemonic('R');
            else if (buttonText.equals(DcResources.getText("lblOK")))
                button.setMnemonic('O');
            else if (buttonText.equals(DcResources.getText("lblApply")))
                button.setMnemonic('A');
            else if (buttonText.equals(DcResources.getText("lblNew")))
                button.setMnemonic('N');
            else if (buttonText.equals(DcResources.getText("lblNext")))
                button.setMnemonic('N');
            else if (buttonText.equals(DcResources.getText("lblDelete")))
                button.setMnemonic('D');
            else if (buttonText.equals(DcResources.getText("lblAddNew")))
                button.setMnemonic('A');
            else if (buttonText.equals(DcResources.getText("lblAdd")))
                button.setMnemonic('A');
            else if (buttonText.equals(DcResources.getText("lblClear")))
                button.setMnemonic('L');
            else if (buttonText.equals(DcResources.getText("lblStop")))
                button.setMnemonic('T');
            else if (buttonText.equals(DcResources.getText("lblStart")))
                button.setMnemonic('S');
            else if (buttonText.equals(DcResources.getText("lblYes")))
                button.setMnemonic('Y');
            else if (buttonText.equals(DcResources.getText("lblNo")))
                button.setMnemonic('N');
            else if (buttonText.equals(DcResources.getText("lblRemove")))
                button.setMnemonic('R');
            else if (buttonText.equals(DcResources.getText("lblBack")))
                button.setMnemonic('B');
        }
       
        button.setPreferredSize(new Dimension(120, height));
        button.setMaximumSize(new Dimension(120, height));
        button.setMinimumSize(new Dimension(120, height));
        button.setFont(getSystemFont());
        return button;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcButton

    }   
   
    private void build() {
        getContentPane().setLayout(Layout.getGBL());
       
        DcButton buttonNext = ComponentFactory.getButton(DcResources.getText("lblNext"));
        DcButton buttonClose = ComponentFactory.getButton(DcResources.getText("lblClose"));
       
        buttonNext.addActionListener(this);
        buttonNext.setActionCommand("next");
       
        buttonClose.addActionListener(this);
        buttonClose.setActionCommand("close");
       
        checkShowTips.addActionListener(this);
        checkShowTips.setActionCommand("toggleActive");
        checkShowTips.setSelected(DcSettings.getBoolean(DcRepository.Settings.stShowTipsOnStartup));
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.