Package ModalGUI

Examples of ModalGUI.GUIButton.addActionListener()


    window.add(button);
    posY += spacingY;

    button = new GUIToggle(400, 200, "gui/WINDOW_INTRO_LIBRARY.png", gui);
    button.addActionListener(window, "close", UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools, "setDisplaypanelAsShown",
        UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools.SketchTools, "selectTool",
        SketchTools.SELECT_TOOL);
    button.addActionListener(GLOBAL.uiTools, "loadTemplateChair",
        UITools.LEG_TOOL);
View Full Code Here


    button = new GUIToggle(400, 200, "gui/WINDOW_INTRO_LIBRARY.png", gui);
    button.addActionListener(window, "close", UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools, "setDisplaypanelAsShown",
        UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools.SketchTools, "selectTool",
        SketchTools.SELECT_TOOL);
    button.addActionListener(GLOBAL.uiTools, "loadTemplateChair",
        UITools.LEG_TOOL);
    window.add(button);
View Full Code Here

    button.addActionListener(window, "close", UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools, "setDisplaypanelAsShown",
        UITools.LEG_TOOL);
    button.addActionListener(GLOBAL.uiTools.SketchTools, "selectTool",
        SketchTools.SELECT_TOOL);
    button.addActionListener(GLOBAL.uiTools, "loadTemplateChair",
        UITools.LEG_TOOL);
    window.add(button);

    posY += spacingY;
View Full Code Here

    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(toggle);

    GUIButton button = new GUIButton(posX, posY, button_width,
        button_height, "gui/undo.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "undo", UITools.SCALE_TOOL);
    button.setLabel("undo");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;

    toolPanel.placeComponent(button);
View Full Code Here

    toolPanel.placeComponent(button);

    button = new GUIButton(posX, posY, button_width, button_height,
        "gui/GUI_SLICE_DELETE_BUTTON.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "deleteAllChairsFlag",
        UITools.SCALE_TOOL);
    button.setLabel("delete");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    toolPanel.placeComponent(button);

    button = new GUIButton(posX, posY, button_width, button_height,
        "gui/GUI_MAKE_BUTTON.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "makeChairWindow",
        UITools.SCALE_TOOL);
    button.setLabel("make");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    toolPanel.placeComponent(toggle);

    GUIButton button = new GUIButton(posX, posY, button_width,
        button_height, "gui/undo.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "undo", UITools.SCALE_TOOL);
    button.setLabel("undo");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;

    toolPanel.placeComponent(button);
View Full Code Here

   
    //save

    GUIButton button = new GUIButton(0, 0, button_width, button_height,
        "gui/save_pdf.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "savePDF",
        UITools.VIEW_SHAPE_PACK);
    button.setLabel("save pdf");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(button);
View Full Code Here

    button.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(button);

    button = new GUIButton(0, 0, button_width, button_height,
        "gui/print.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "print",
        UITools.VIEW_SHAPE_PACK);
    button.setLabel("print");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(button);
View Full Code Here

    button.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(button);

    button = new GUIButton(0, 0, button_width, button_height,
        "gui/plot.png", null, gui);
    button.addActionListener(GLOBAL.uiTools, "saveCraftRobo",
        UITools.VIEW_SHAPE_PACK);
    button.setLabel("plot");
    button.label.align = GUILabel.CENTRE;
    button.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(button);
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.