Examples of Label


Examples of fr.soleil.comete.widget.swing.Label

    /**
     * Initialization of a range view.
     */
    public void initialize() {
        this.rangeNameLabel = new Label();
        this.rangeNameLabel.setText("Range");
        this.rangeNameLabel.setBackground(new Color(204, 255, 204));
        this.rangeNameLabel.setOpaque(true);
        this.rangeNameLabel.setHorizontalAlignment(JLabel.CENTER);
        this.rangeNameLabel.setVerticalAlignment(JLabel.CENTER);
        this.rangeNameLabel.setPreferredSize(new Dimension(200, 30));
        this.rangeNameLabel.setBorder(BorderFactory.createEtchedBorder());

        this.integrationTimeLabel = new Label();
        this.integrationTimeLabel.setText("Integration Time ");
        this.integrationTimeLabel.setFont(new Font(null, 0, 11));
        this.integrationTimeLabel.setPreferredSize(new Dimension(100, 20));

        this.numberOfStepsLabel = new Label();
        this.numberOfStepsLabel.setText("Number of Steps ");
        this.numberOfStepsLabel.setFont(new Font(null, 0, 11));
        this.numberOfStepsLabel.setPreferredSize(new Dimension(100, 20));

        this.setLayout(new GridBagLayout());
View Full Code Here

Examples of hudson.model.Label

            lastBuiltOn = null;
        }

        private Label getAssignedLabel(SubTask task) {
            for (LabelAssignmentAction laa : item.getActions(LabelAssignmentAction.class)) {
                Label l = laa.getAssignedLabel(task);
                if (l!=null)    return l;
            }
            return task.getAssignedLabel();
        }
View Full Code Here

Examples of it.hotel.model.label.Label

  public void onSetUpInTransaction() throws Exception {
   
  }
 
  public void testLabel() throws Exception {
    Label label = new Label();
    label.setCode("hotel.description");
    label.setText("questo è italiano");
    label.setLanguage("it");
    label.setOwnerId(1);
    labelRawManager.add(label);
    sessionFactory.getCurrentSession().flush();
    sessionFactory.getCurrentSession().clear();
    assertTrue(label.getId() > 0);
    Label l2 = (Label) labelRawManager.get(label.getId());
    assertNotNull(l2);
    assertEquals(1, label.getOwnerId());
   
  }
View Full Code Here

Examples of jaron.pde.Label

  /**
   * Setup the user interface.
   */
  public void setupUserInterface() {
    // Setup the labels that describe the panel's functionallity
    labelFlightData = new Label(this, "Flight Data", 10, 10, 20, 150);
    labelFlightData.setColorBackground(Colors.GRAY_DARK);
    labelFlightData.setColorFrame(Colors.BLACK);
    labelFlightData.setColorText(Colors.WHITE);
    labelFlightData.setTextOrientation(Label.VERTICAL);
    labelStabilization = new Label(this, "Stabilization", 10, 170, 20, 250);
    labelStabilization.setColorBackground(Colors.GRAY_DARK);
    labelStabilization.setColorFrame(Colors.BLACK);
    labelStabilization.setColorText(Colors.WHITE);
    labelStabilization.setTextOrientation(Label.VERTICAL);
    labelNavigation = new Label(this, "Navigation", 10, 430, 20, 120);
    labelNavigation.setColorBackground(Colors.GRAY_DARK);
    labelNavigation.setColorFrame(Colors.BLACK);
    labelNavigation.setColorText(Colors.WHITE);
    labelNavigation.setTextOrientation(Label.VERTICAL);
    labelControls = new Label(this, "Controls", 10, 560, 20, 140);
    labelControls.setColorBackground(Colors.GRAY_DARK);
    labelControls.setColorFrame(Colors.BLACK);
    labelControls.setColorText(Colors.WHITE);
    labelControls.setTextOrientation(Label.VERTICAL);

View Full Code Here

Examples of java.awt.Label

    // Setup selection panel
    // =================================
    selectionPanel = new Panel();
    selectionPanel.setLayout(new BorderLayout());
    selectionPanel.add(new Label("Demo", Label.CENTER), BorderLayout.NORTH);

    Button fullScreen = new Button("Fullscreen");
    fullScreen.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent event) {
View Full Code Here

Examples of javafx.scene.control.Label

   * @param promptText the prompt text
   */
  public TextFieldMenu(final String labelText, final String promptText) {
    super(5d);
    if (labelText != null && !labelText.isEmpty()) {
      label = new Label(labelText);
      getChildren().add(label);
    } else {
      label = null;
    }
    textField.setPromptText(promptText);
View Full Code Here

Examples of jcurses.widgets.Label

  public Message(String title, String text, String buttonLabel) {
    super(getWidth(text, title)+4, getHeight(text)+7,true,title);
   
    DefaultLayoutManager manager = (DefaultLayoutManager)getRootPanel().getLayoutManager();
   
    _label = new Label(text);
    _button = new Button(buttonLabel);
    _title = title;
   
    _button.addListener(this);
   
View Full Code Here

Examples of jdk.internal.org.objectweb.asm.Label

        if (!classOptimizer.class$) {
            MethodVisitor mv = classOptimizer.visitMethod(ACC_STATIC
                    | ACC_SYNTHETIC, "class$",
                    "(Ljava/lang/String;)Ljava/lang/Class;", null, null);
            mv.visitCode();
            Label l0 = new Label();
            Label l1 = new Label();
            Label l2 = new Label();
            mv.visitTryCatchBlock(l0, l1, l2,
                    "java/lang/ClassNotFoundException");
            mv.visitLabel(l0);
            mv.visitVarInsn(ALOAD, 0);
            mv.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName",
                    "(Ljava/lang/String;)Ljava/lang/Class;");
            mv.visitLabel(l1);
            mv.visitInsn(ARETURN);
            mv.visitLabel(l2);
            mv.visitMethodInsn(INVOKEVIRTUAL,
                    "java/lang/ClassNotFoundException", "getMessage",
                    "()Ljava/lang/String;");
            mv.visitVarInsn(ASTORE, 1);
            mv.visitTypeInsn(NEW, "java/lang/NoClassDefFoundError");
            mv.visitInsn(DUP);
            mv.visitVarInsn(ALOAD, 1);
            mv.visitMethodInsn(INVOKESPECIAL, "java/lang/NoClassDefFoundError",
                    "<init>", "(Ljava/lang/String;)V");
            mv.visitInsn(ATHROW);
            mv.visitMaxs(3, 2);
            mv.visitEnd();

            classOptimizer.class$ = true;
        }

        String clsName = classOptimizer.clsName;
        mv.visitFieldInsn(GETSTATIC, clsName, fieldName, "Ljava/lang/Class;");
        Label elseLabel = new Label();
        mv.visitJumpInsn(IFNONNULL, elseLabel);
        mv.visitLdcInsn(ldcName.replace('/', '.'));
        mv.visitMethodInsn(INVOKESTATIC, clsName, "class$",
                "(Ljava/lang/String;)Ljava/lang/Class;");
        mv.visitInsn(DUP);
        mv.visitFieldInsn(PUTSTATIC, clsName, fieldName, "Ljava/lang/Class;");
        Label endLabel = new Label();
        mv.visitJumpInsn(GOTO, endLabel);
        mv.visitLabel(elseLabel);
        mv.visitFieldInsn(GETSTATIC, clsName, fieldName, "Ljava/lang/Class;");
        mv.visitLabel(endLabel);
    }
View Full Code Here

Examples of jfix.zk.Label

      return parameter.getKey();
    case 1:
      String value = parameter.getValue();
      int index = value.indexOf("\n");
      if (index != -1) {
        return new View(value, new Label(value.substring(0, index)
            + " [...]"));
      } else {
        return parameter.getValue();
      }
    }
View Full Code Here

Examples of jodd.asm5.Label

        break;

      case 'B':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
          mv.visitLabel(label);

          AsmUtil.byteValue(mv);
        }
        mv.visitInsn(IRETURN);
        break;

      case 'C':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
          mv.visitLabel(label);

          AsmUtil.charValue(mv);
        }
        mv.visitInsn(IRETURN);
        break;

      case 'S':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
          mv.visitLabel(label);

          AsmUtil.shortValue(mv);
        }
        mv.visitInsn(IRETURN);
        break;

      case 'I':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
          mv.visitLabel(label);

          AsmUtil.intValue(mv);
        }
        mv.visitInsn(IRETURN);
        break;

      case 'Z':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(ICONST_0);
            mv.visitInsn(IRETURN);
          mv.visitLabel(label);

          AsmUtil.booleanValue(mv);
        }
        mv.visitInsn(IRETURN);
        break;

      case 'J':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(LCONST_0);
            mv.visitInsn(LRETURN);
          mv.visitLabel(label);

          AsmUtil.longValue(mv);
        }
        mv.visitInsn(LRETURN);
        break;

      case 'F':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(FCONST_0);
            mv.visitInsn(FRETURN);
          mv.visitLabel(label);

          AsmUtil.floatValue(mv);
        }
        mv.visitInsn(FRETURN);
        break;

      case 'D':
        if (isLast == true) {
          mv.visitInsn(DUP);
          Label label = new Label();
          mv.visitJumpInsn(IFNONNULL, label);
            mv.visitInsn(POP);
            mv.visitInsn(DCONST_0);
            mv.visitInsn(DRETURN);
          mv.visitLabel(label);
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.