Package ModalGUI

Examples of ModalGUI.GUINumberfield.addActionListener()


    if (sliceSelection.type == CrossSliceSelection.SLICES
        || sliceSelection.type == CrossSliceSelection.SINGLE_SLICE
        || sliceSelection.type == CrossSliceSelection.SLATSLICES) {
      GUINumberfield slatHeight = new GUINumberfield(xPos, yPos, 30, 15,
          this.controller);
      slatHeight.addActionListener(sliceSelection, "slatHeight");
      String sHeight = Float.toString(sliceSelection.getSlatHeight());
      if (sliceSelection.getSlatHeight() == 0)
        sHeight = "";

      slatHeight.setText(sHeight);
View Full Code Here


    if (sliceSelection.type == CrossSliceSelection.SLATSLICES
        || sliceSelection.type == CrossSliceSelection.PLANE_ON_EDGE) {

      GUINumberfield slatHeight = new GUINumberfield(230, 45, 60, 15,
          this.controller);
      slatHeight.addActionListener(sliceSelection, "teethCount");
      String sHeight = Float.toString(sliceSelection.teethCount);
      slatHeight.setText(sHeight);
      slatHeight.setLabel("teeth count");
      this.propertiesPanel.add(slatHeight);
View Full Code Here

      slatHeight.setLabel("teeth count");
      this.propertiesPanel.add(slatHeight);

      GUINumberfield fingerTollerance = new GUINumberfield(230, 65, 60,
          15, this.controller);
      fingerTollerance.addActionListener(sliceSelection,
          "fingerTollerance");
      String fingetTol = Float.toString(sliceSelection.fingerTollerance);
      fingerTollerance.setText(fingetTol);
      fingerTollerance.setLabel("finger tollerance");
      this.propertiesPanel.add(fingerTollerance);
View Full Code Here

    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);
View Full Code Here

    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");
    add(numberField);
   
   
   
   
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.