Package ModalGUI

Examples of ModalGUI.GUIButton.addActionListener()


    cameraPanel.placeComponent(button);

    button = new GUIButton(posX, posY,
        "proButtons/GUI_CAM_JUMP_SIDE_UP.png",
        "proButtons/GUI_CAM_JUMP_SIDE_DOWN.png", gui);
    button.addActionListener(GLOBAL.uiTools, "camJumpSide",
        UITools.MOVE_CAM_TOOL);
    button.addToolTip(GLOBAL.applet,
        "proButtons/GUI_CAM_JUMP_SIDE_TOOLTIP", LANGUAGE);

    gui.add(button);
View Full Code Here


    cameraPanel.placeComponent(button);

    button = new GUIButton(posX, posY,
        "proButtons/GUI_CAM_JUMP_TOP_UP.png",
        "proButtons/GUI_CAM_JUMP_TOP_DOWN.png", gui);
    button.addActionListener(GLOBAL.uiTools, "camJumpTop",
        UITools.MOVE_CAM_TOOL);
    button.addToolTip(GLOBAL.applet, "proButtons/GUI_CAM_JUMP_TOP_TOOLTIP",
        LANGUAGE);

    gui.add(button);
View Full Code Here

    //PHYSICS controls
    button = new GUIButton(posX, posY,
        "proButtons/GUI_PHYSICS_PAUSE_UP.png",
        "proButtons/GUI_PHYSICS_PAUSE_DOWN.png", gui);
    button.addActionListener(GLOBAL.uiTools, "physicsPause",
        UITools.MOVE_CAM_TOOL);
    button.addToolTip(GLOBAL.applet,
        "proButtons/GUI_PHYSICS_PAUSE_TOOLTIP", LANGUAGE);

    gui.add(button);
View Full Code Here

              40, 40);

        //image.resize(40, 40);

        button = new GUIButton(0, 0, imageCpy, null, GLOBAL.applet, gui);
        button.addActionListener(GLOBAL.environments,
            "loadEnvironment", path);

        //gui.add(button);
        panel.placeComponent(button);
      }
View Full Code Here

     }
    
    GUIButton button = null;
   
    button = new GUIButton(posX+150,modelPannelYPosBase-50,"gui/GUI_ERGO_BIGGER.png","gui/GUI_ERGO_BIGGER.png",gui );
    button.addActionListener(GLOBAL.uiTools, "figureGrow", null);
    this.add(button);
     middleComponents.add(button);

   
    button = new GUIButton(posX+150,modelPannelYPosBase - 35,"gui/GUI_ERGO_BAR.png","gui/GUI_ERGO_BAR.png",gui );
View Full Code Here

    button = new GUIButton(posX+150,modelPannelYPosBase - 35,"gui/GUI_ERGO_BAR.png","gui/GUI_ERGO_BAR.png",gui );
    this.add(button);
     middleComponents.add(button);
   
    button = new GUIButton(posX+150,modelPannelYPosBase-10,"gui/GUI_ERGO_SMALLER.png","gui/GUI_ERGO_SMALLER.png",gui );
    button.addActionListener(GLOBAL.uiTools, "figureShrink", null);
    this.add(button);
     middleComponents.add(button);
    
     /*
    label = new GUILabel(2,patternPannelYPos-20,"pattern | view", gui);
View Full Code Here

     toggle.setLabel("add labels");
      //toggle.label.align = GUILabel.CENTRE; toggle.label.layout = GUILabel;
      add(toggle);
     
    GUIButton button = new GUIButton(800, 30, 60, 15,"Apply", gui);
    button.addActionListener(GLOBAL.uiTools, "applyMaterialSettings");
    add(button);
  }


View Full Code Here

              thumbSize, thumbSize);

        //image.resize(40, 40);

        button = new GUIButton(0, 0, imageCpy, null, GLOBAL.applet, gui);
        button.addActionListener(window, "close", path);
        button.addActionListener(this, "loadChair", path);

        //gui.add(button);
        this.scrollPanel.placeComponent(button);
      }
View Full Code Here

        //image.resize(40, 40);

        button = new GUIButton(0, 0, imageCpy, null, GLOBAL.applet, gui);
        button.addActionListener(window, "close", path);
        button.addActionListener(this, "loadChair", path);

        //gui.add(button);
        this.scrollPanel.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.