Package java.awt

Examples of java.awt.Button$State


     * @return Button
     */
    private Button getBrowseButton() {
        if (iBrowseButton == null) {
            try {
                iBrowseButton = new Button();
                iBrowseButton.setName("BrowseButton");
                iBrowseButton.setLabel("...");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here


     * @return java.awt.Button
     */
    private Button getBuildButton() {
        if (iBuildButton == null) {
            try {
                iBuildButton = new Button();
                iBuildButton.setName("BuildButton");
                iBuildButton.setLabel("Execute");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Button
     */
    private Button getCloseButton() {
        if (iCloseButton == null) {
            try {
                iCloseButton = new Button();
                iCloseButton.setName("CloseButton");
                iCloseButton.setLabel("Close");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Button
     */
    private Button getMessageClearLogButton() {
        if (iMessageClearLogButton == null) {
            try {
                iMessageClearLogButton = new Button();
                iMessageClearLogButton.setName("MessageClearLogButton");
                iMessageClearLogButton.setLabel("Clear Log");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Button
     */
    private Button getMessageOkButton() {
        if (iMessageOkButton == null) {
            try {
                iMessageOkButton = new Button();
                iMessageOkButton.setName("MessageOkButton");
                iMessageOkButton.setLabel("Close");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Button
     */
    private Button getReloadButton() {
        if (iReloadButton == null) {
            try {
                iReloadButton = new Button();
                iReloadButton.setName("ReloadButton");
                iReloadButton.setLabel("(Re)Load");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Button
     */
    private Button getStopButton() {
        if (iStopButton == null) {
            try {
                iStopButton = new Button();
                iStopButton.setName("StopButton");
                iStopButton.setLabel("Stop");
                iStopButton.setEnabled(false);
            } catch (Throwable iExc) {
                handleException(iExc);
View Full Code Here

    private void createButtonsPanel() {
        final Panel buttons = new Panel(new FlowLayout(FlowLayout.RIGHT));
        add(buttons, BorderLayout.SOUTH);

        buttons.add(cancel = new Button(CANCEL_LABEL));
        cancel.addActionListener(this);
        cancel.addKeyListener(this);

        buttons.add(login = new Button(LOGIN_LABEL));
        login.addActionListener(this);
        login.addKeyListener(this);
    }
View Full Code Here

    private void addButtons() {
        final Panel p = new Panel();

        p.setLayout(new java.awt.GridLayout(1, 0, 10, 0));
        add(p, BorderLayout.SOUTH);
        Button b;

        p.add(b = new Button("Blank"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                clearLog();
            }
        });

        // debug
        p.add(b = new Button("Classes"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                listClasses();
            }
        });

        p.add(b = new Button("Cache"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                listCachedObjects();
            }
        });

        p.add(b = new Button("C/Cache"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                clearCache();
            }
        });

        // quit
        p.add(quit = new Button("Quit"));
        quit.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                quit();
            }
View Full Code Here

        final Panel buttons = new Panel();
        buttons.setLayout(new FlowLayout());
        tabPane.add(buttons, BorderLayout.SOUTH);

        // add buttons
        Button b = new java.awt.Button("Refresh");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                showDebugForPane();
            }
        });

        b = new java.awt.Button("Print...");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.print("Debug " + tabPane.getName(), field.getText());
            }
        });

        b = new java.awt.Button("Save...");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.saveToFile("Save details", "Debug " + tabPane.getName(), field.getText());
            }
        });

        b = new java.awt.Button("Copy");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.saveToClipboard(field.getText());
            }
        });

        b = new java.awt.Button("Close");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                closeDialog();
            }
        });
View Full Code Here

TOP

Related Classes of java.awt.Button$State

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.