Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.DefaultFormBuilder.addLabel()


        .getRow(), 5));
   
    builder.nextLine(2);
    builder.append(Messages.getString("Text.Type") + ":", typeCombo);

    builder.addLabel(Messages.getString("Text.Lag") + ":");
    builder.nextColumn(2);
    builder.add(lagTextField);

    return builder.getPanel();
  }
View Full Code Here


    map.append(builder,"Field.inactive"); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.resourceType"); //$NON-NLS-1$
    map.appendSometimesReadOnly(builder,"Field.materialLabel"); //$NON-NLS-1$
    builder.nextLine(2);
    builder.addLabel(map.getLabel("Field.baseCalendar")+":"); //$NON-NLS-1$ //$NON-NLS-2$
    builder.nextColumn(2);
    changeWorkingTimeButton=getChangeWorkingTimeButton();
    builder.append(pairedComponents(map,"Field.baseCalendar",0,changeWorkingTimeButton)); //$NON-NLS-1$
       return builder.getPanel();
     
View Full Code Here

    // Wrap the panel with a standardized border.
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setBorder(BorderFactory.createEmptyBorder(0, 5 ,0 ,0));
    CellConstraints cc = new CellConstraints();
   
    builder.addLabel(Messages.getString("ChartLegend.ResourceFilter"),    cc.xy  (1,1)); //$NON-NLS-1$
    builder.add(filterComboBox,    cc.xy  (3,1));
    builder.add(treeScrollPane,  cc.xywh(1,3,3,5));
    builder.add(tracesScrollPane    ,cc.xy  (5,7));
    if (simple){
      builder.add(selectedOnTop,        cc.xy  (5,1));
View Full Code Here

  private JComponent createSettingsPanel() {
    FormLayout settingsLayout = new FormLayout("100dlu", //$NON-NLS-1$
    "p,0dlu ,p,3dlu ,p,3dlu p,3dlu,p,0dlu ,p,0dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p,3dlu ,p"); //$NON-NLS-1$
    DefaultFormBuilder settingBuilder = new DefaultFormBuilder(settingsLayout);

    settingBuilder.addLabel(Messages.getString("ChangeWorkingTimeDialogBox.For")); //$NON-NLS-1$
    settingBuilder.nextLine(2);
    settingBuilder.add(calendarType);
    settingBuilder.nextLine(2);
    settingBuilder.add(basedOnText);
    settingBuilder.nextLine(2);
View Full Code Here

                "net/sourceforge/marathon/display/icons/enabled/error.gif")));
        errorMsgLabel.setVisible(false);

        int row = 1;
        inputField = new JTextField(15);
        builder.addLabel(getFieldLabel(), cc.xy(2, row), inputField, cc1.xy(4, row));
        row += 2;
        okButton = createOKButton();
        okButton.setEnabled(false);
        ok = false;
        DocumentListener documentListener = new DocumentListener() {
View Full Code Here

                "net/sourceforge/marathon/display/icons/enabled/error.gif")));
        errorMsgLabel.setVisible(false);

        int row = 1;
        functionName = new JTextField(15);
        builder.addLabel("&Module function name: ", cc.xy(2, row), functionName, cc1.xy(4, row));
        row += 2;
        description = new JTextArea(5, 30);
        description.setLineWrap(true);
        builder.addLabel("&Description: ", cc.xy(2, row, "left, top"), new JScrollPane(description), cc1.xy(4, row));
        row += 2;
View Full Code Here

        functionName = new JTextField(15);
        builder.addLabel("&Module function name: ", cc.xy(2, row), functionName, cc1.xy(4, row));
        row += 2;
        description = new JTextArea(5, 30);
        description.setLineWrap(true);
        builder.addLabel("&Description: ", cc.xy(2, row, "left, top"), new JScrollPane(description), cc1.xy(4, row));
        row += 2;
        okButton = UIUtils.createOKButton();
        okButton.setEnabled(false);
        ok = false;
        DocumentListener documentListener = new DocumentListener() {
View Full Code Here

        };
        functionName.getDocument().addDocumentListener(documentListener);
        description.getDocument().addDocumentListener(documentListener);
        if (needModuleFile) {
            moduleDirCombo = createModuleDirCombo();
            builder.addLabel("M&odule Directory: ", cc.xy(2, row), moduleDirCombo, cc1.xy(4, row));
            row += 2;
            moduleFileCombo = createModuleFileCombo();
            ((JTextField) moduleFileCombo.getEditor().getEditorComponent()).getDocument().addDocumentListener(documentListener);
            builder.addLabel("Mod&ule File: ", cc.xy(2, row), moduleFileCombo, cc1.xy(4, row));
            row += 2;
View Full Code Here

            moduleDirCombo = createModuleDirCombo();
            builder.addLabel("M&odule Directory: ", cc.xy(2, row), moduleDirCombo, cc1.xy(4, row));
            row += 2;
            moduleFileCombo = createModuleFileCombo();
            ((JTextField) moduleFileCombo.getEditor().getEditorComponent()).getDocument().addDocumentListener(documentListener);
            builder.addLabel("Mod&ule File: ", cc.xy(2, row), moduleFileCombo, cc1.xy(4, row));
            row += 2;

            // Set the module dir to the first modules dir
            moduleDirCombo.setSelectedIndex(0);
        }
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.