Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


  }

  private JPanel buildParticipantsPanel() {
    FormLayout layout = new FormLayout("100dlu:grow,3dlu,p",
        "p,3dlu,40dlu:grow");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Involverte:", cc.xy(1, 1));
    builder.add(new JScrollPane(listParticipants), cc.xy(1, 3));
    builder.add(buildParticipantButtonPanel(), cc.xy(3, 3));

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


    FormLayout layout = new FormLayout("15dlu,"
        + viewHandler.getTableWidth() + ":grow,3dlu,p,15dlu",
        "10dlu,p,3dlu,10dlu,p,3dlu,p,3dlu,p,3dlu,p,"
            + viewHandler.getTableHeight() + ":grow,p,5dlu,p,5dlu");
    // PanelBuilder builder = new PanelBuilder(layout,new FormDebugPanel());
    PanelBuilder builder = new PanelBuilder(layout);
    scrollPaneTable = new JScrollPane(table);
    scrollPaneTable.setBorder(Borders.EMPTY_BORDER);
    CellConstraints cc = new CellConstraints();

    builder.add(labelHeading, cc.xy(2, 2));
    builder.add(scrollPaneTable, cc.xywh(2, 4, 1, 9));
    // builder.add(table, cc.xywh(2, 4, 1, 9));

    builder.add(buildButtonPanel(), cc.xywh(4, 5, 1, 10));

    builder.add(ButtonBarFactory
        .buildCenteredBar(buttonExcel, buttonCancel), cc.xyw(2, 15, 3));

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

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,3dlu,70dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Fornavn:", cc.xy(2, 2));
    builder.add(textFieldFirstName, cc.xy(4, 2));
    builder.addLabel("Etternavn:", cc.xy(2, 4));
    builder.add(textFieldLastName, cc.xy(4, 4));
    builder.addLabel("Stilling:", cc.xy(2, 6));
    builder.add(comboBoxEmployeeType, cc.xy(4, 6));
    builder.add(ButtonBarFactory.buildCenteredBar(buttonOk, buttonCancel),
        cc.xyw(2, 8, 3));

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

     */
    public Component buildPanel(WindowInterface window) {
        initComponents(window);
        FormLayout layout = new FormLayout("10dlu,p,3dlu,p,3dlu,p,3dlu,p,280dlu:grow,10dlu",
                "10dlu,p,3dlu,300dlu:grow,3dlu,p");
        PanelBuilder builder = new PanelBuilder(layout);
        // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
        JScrollPane scrollPane = new JScrollPane(productionTable);
        scrollPane.setName("ScrollPaneTable");
        builder.addLabel("Produktomr�de:", cc.xy(2, 2));
        builder.add(comboBoxProductAreaGroup, cc.xy(4, 2));
        builder.add(buttonSearch, cc.xy(6, 2));
        builder.add(checkBoxFilter, cc.xy(8, 2));
        builder.add(scrollPane, cc.xyw(2, 4, 8));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonRefresh, buttonClose), cc.xyw(2, 6, 8));

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

  @Override
  protected final JComponent buildEditPanel(final WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,3dlu,120dlu,3dlu,p,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,100dlu,3dlu,p,5dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Brukernavn:", cc.xy(2, 2));
    builder.add(textFieldUserName, cc.xy(4, 2));
    builder.addLabel("Fornavn:", cc.xy(2, 4));
    builder.add(textFieldFirstName, cc.xy(4, 4));
    builder.addLabel("Etternavn:", cc.xy(2, 6));
    builder.add(textFieldLastName, cc.xy(4, 6));
    builder.addLabel("Passord:", cc.xy(2, 8));
    builder.add(passwordField, cc.xy(4, 8));
    builder.addLabel("Gruppebruker:", cc.xy(2, 10));
    builder.add(comboBoxGroupUser, cc.xy(4, 10));
    builder.addLabel("Funksjon:", cc.xy(2, 12));
    builder.add(comboBoxJobFunction, cc.xy(4, 12));
    builder.addLabel("Produktomr�de:", cc.xy(2, 14));
    builder.add(comboBoxProductArea, cc.xy(4, 14));

    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add("Profiler", buildUserProfilePanel());
    tabbedPane.add("Produktomr�der", buildProductAreaPanel());
    builder.add(tabbedPane, cc.xyw(2, 16, 3));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 18, 6));

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

   *
   * @return panel
   */
  private JPanel buildProductAreaPanel() {
    FormLayout layout = new FormLayout("60dlu,3dlu,p", "p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.add(new JScrollPane(listProductArea), cc.xy(1, 1));
    builder.add(buildProductAreaButtonPanel(), cc.xy(3, 1));

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

   *
   * @return panel
   */
  private JPanel buildUserProfilePanel() {
    FormLayout layout = new FormLayout("60dlu,3dlu,p", "p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.add(new JScrollPane(listUserRoles), cc.xy(1, 1));
    builder.add(buildUserTypeButtonPanel(), cc.xy(3, 1));

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

    initComponents(window);
    FormLayout layout = new FormLayout(viewHandler.getTableWidth()
        + ":grow,3dlu,p,3dlu,p", "p,3dlu,"
        + viewHandler.getTableHeight() + ":grow,5dlu,p");
    // PanelBuilder builder = new PanelBuilder(layout,new FormDebugPanel());
    PanelBuilder builder = new PanelBuilder(layout);
    JScrollPane scrollPaneTable = new JScrollPane(table);

    CellConstraints cc = new CellConstraints();
    scrollPaneTable.setBorder(Borders.EMPTY_BORDER);

    builder.add(checkBoxFilterOwn, cc.xy(3, 1));
    builder.add(checkBoxFilterDone, cc.xy(5, 1));
    builder.add(scrollPaneTable, cc.xywh(1, 3, 1, 1));

    builder.add(buildButtonPanel(), cc.xywh(3, 3, 3, 1));

    builder.add(ButtonBarFactory.buildCenteredBar(buttonExcel), cc.xyw(1,
        5, 4));

    return builder.getPanel();

  }
View Full Code Here

    }
    public JPanel buildPanel(WindowInterface window){
        window.setName("FileView");
        initComponents(window);
        FormLayout layout = new FormLayout("10dlu,fill:500dlu,10dlu", "10dlu,fill:300dlu,3dlu,p");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
        builder.add(new JScrollPane(textAreaFile),cc.xy(2, 2));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonCancel),cc.xy(2, 4));
        return builder.getPanel();
    }
View Full Code Here

        "p,100dlu,bottom:p:grow");

    FormDebugPanel formDebugPanel = new FormDebugPanel();

    formDebugPanel.setGridColor(Color.BLACK);
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(formDebugPanel,layout);
    CellConstraints cc = new CellConstraints();

    builder.add(buildStatisticsPanel(), cc.xy(1, 1));

    List<String> test = new ArrayList<String>();
    test.add("test");
    test.add("test2");
    builder.add(textTickerInfo, cc.xy(1, 3));

    panel.add(builder.getPanel(), new GridBagConstraints(1, 1, 1, 1, 0.0,
        0.0, GridBagConstraints.WEST, GridBagConstraints.NONE,
        new Insets(0, 0, 0, 0), 0, 0));
    return panel;

  }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.builder.PanelBuilder

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.