Package ModalGUI

Examples of ModalGUI.GUILabel


float posX = 100;
float posY = 100;
float spacingY = 80;

GUILabel tittle  = new GUILabel(20,10,"Login",GLOBAL.gui);

loginWindow.add(tittle);

loginUsername = new GUITextfield(20, 40, 100,
    15, GLOBAL.gui);
loginUsername.setText("");
loginUsername.setLabel("username");
loginUsername.setFocus(true);
loginUsername.isTexfieldActive = true;
loginUsername.isActive = true;
loginUsername.wasClicked= true;
loginWindow.add(loginUsername);


loginPassword = new GUITextfield(20, 60, 100,
    15, GLOBAL.gui);
loginPassword.setText("");
loginPassword.setLabel("password");
loginPassword.setPasswordMode(true);
loginWindow.add(loginPassword);


loginLabel = new GUILabel(20,80,"",GLOBAL.gui);
loginWindow.add(loginLabel);


GUIButton button;
button = new GUIButton(20,100,60,20,"login", GLOBAL.gui);
View Full Code Here


     xPos += 20;
     yPos = 10;

   
    GUILabel label = new GUILabel(xPos, yPos-10,"cap\nstyle",this.controller);
    this.propertiesPanel.add(label);
    xPos += 35;

    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CAP_WING.png",this.controller);
    toggle.setComponentSet(radioSet);
View Full Code Here

     yPos = 65;
     float xPos = 20;
    GUIComponentSet toggleSetCaps = new GUIComponentSet();

   
    GUILabel label = new GUILabel(xPos-2, yPos-16, "cap\nstyle",gui);
    this.add(label);
   
    xPos+=30;
    GUIToggle toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_ROUND.png",
        gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_ROUND);
    /*toggle.setLabel("round");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_ROUND)
      toggle.toggleDown();
   
    add(toggle);

    xPos+=30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_BUT.png", gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_BUTT);
    /*toggle.setLabel("butt");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_BUTT)
      toggle.toggleDown();
    add(toggle);
   
    xPos+=30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_PARALLEL.png", gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_PARRALEL);
    /*toggle.setLabel("parallel");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_PARRALEL)
      toggle.toggleDown();
    add(toggle);

   
    xPos+=85;

   
     label = new GUILabel(xPos-35, yPos-14, "cut\nshape",gui);
    this.add(label);
   
   
    toggle = new GUIToggle(xPos, yPos,
        "gui/GUI_SHAPE_CUT.png", gui);
View Full Code Here

   
   
   
   
   
    label = new GUILabel(20, 30, "scale", gui);
    add(label);
   
   
   
    scaleSlider = new GUISlider(70, 30, 85, 1, 25, this.controller);
    scaleSlider.setParentPanel(this);
    scaleSlider.setVal(10);
    scaleSlider.setShowValLabel(true);
    scaleSlider.setFormatValLabel("1:%1$.0f");
    scaleSlider.setLabelValMultiplier(1.0f);
    scaleSlider.setEndImgs(GLOBAL.applet.loadImage("gui/SLIDER_DESIGN_SCALE_MIN.png"),GLOBAL.applet.loadImage("gui/SLIDER_DESIGN_SCALE_MAX.png"));
    add(scaleSlider);
   
   
    slotSizeTextfield = new GUINumberfield(70, 70,
        60, 15, gui);
   


    slotSizeTextfield.setText(
        Float.toString(SETTINGS.materialThickness));
    slotSizeTextfield.setLabel("mm (d)");

    add(slotSizeTextfield);
    slotSizeTextfield.setParentPanel(
        this);
   
   
   
   
   
    label = new GUILabel(250, 30, "width", gui);
    add(label);
    GUINumberfield numberField = new GUINumberfield(300, 30, 60, 15, gui);
    numberField.setLabel("mm (w)");
    numberField.setText(String.valueOf(GLOBAL.shapePack.materialWidth));
    numberField.addActionListener(GLOBAL.shapePack, "materialWidth");
    add(numberField);

    label = new GUILabel(250, 50, "height", gui);
    add(label);
    numberField = new GUINumberfield(300, 50, 60, 15, gui);
    numberField.setLabel("mm (h)");
    numberField.setText(String.valueOf(GLOBAL.shapePack.materialHeight));
    numberField.addActionListener(GLOBAL.shapePack, "materialHeight");
View Full Code Here

TOP

Related Classes of ModalGUI.GUILabel

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.