Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.ColumnSpec


   * <code>null</code>)
   * @param border Border to set around the stack.
   * @return never null
   */
  public JComponent createButtonStack(final Size minimumButtonSize, final Border border) {
    return createButtonStack(minimumButtonSize == null ? null : new ColumnSpec(minimumButtonSize), null, border);
  }
View Full Code Here


  private String[] commandIds = new String[] { "basicApplicationDialogCommand", "basicConfirmationDialogCommand",
      "basicInputApplicationDialogCommand" };

  @Override
  protected JComponent createDialogContentPane() {
    JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] {FormFactory.DEFAULT_COLSPEC , FormFactory.RELATED_GAP_COLSPEC, new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT,
        ColumnSpec.DEFAULT_GROW)}, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
        FormFactory.DEFAULT_ROWSPEC }));
    CommandManager commandManager = Application.instance().getActiveWindow().getCommandManager();
    List<Object> members = new ArrayList<Object>();
View Full Code Here

  private String[] commandIds = new String[] { "basicApplicationDialogCommand", "basicConfirmationDialogCommand",
      "basicInputApplicationDialogCommand" };

  @Override
  protected JComponent createDialogContentPane() {
    JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT,
        ColumnSpec.DEFAULT_GROW) }, new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
        FormFactory.DEFAULT_ROWSPEC }));
    CommandManager commandManager = Application.instance().getActiveWindow().getCommandManager();
    List<Object> members = new ArrayList<Object>();
    for (int i = 0; i < commandIds.length; i++) {
View Full Code Here

     * @param layout   the <code>FormLayout</code> to inspect
     */
    public static void dumpColumnSpecs(FormLayout layout) {
        System.out.print("COLUMN SPECS:");
        for (int col = 1; col <= layout.getColumnCount(); col++) {
            ColumnSpec colSpec = layout.getColumnSpec(col);
            System.out.print(colSpec.toShortString());
            if (col < layout.getColumnCount())
                System.out.print(", ");
        }
        System.out.println();
    }
View Full Code Here

  }

  @Override
  protected JComponent createTitledDialogContentPane() {
    JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] {
        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, ColumnSpec.DEFAULT_GROW),
        FormFactory.RELATED_GAP_COLSPEC,
        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, ColumnSpec.DEFAULT_GROW) }, new RowSpec[] {
        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
    // create all columns, needed to add/remove them
    TableColumn column;
    for (int i = 0; i < headers.size(); ++i) {
      column = new TableColumn(i, -1, new DefaultTableCellRenderer(), null);
View Full Code Here

    Reporter reporter = getReporter();
    Assert.notNull(reporter);
    reporter.setMessageArea(messageArea);

    JPanel panel = new JPanel(new FormLayout(new ColumnSpec[] {
        new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
        FormFactory.UNRELATED_GAP_COLSPEC, new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW) },
        new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), }));
    CellConstraints cc = new CellConstraints();
    panel.add(reporter.getControl(), cc.xy(1, 1));
    AbstractCommand[] reporterCommands = reporter.getReporterCommands();
    AbstractCommand[] commandStack = new AbstractCommand[reporterCommands.length + 1];
View Full Code Here

     * @param layout   the <code>FormLayout</code> to inspect
     */
    public static void dumpColumnSpecs(FormLayout layout) {
        System.out.print("COLUMN SPECS:");
        for (int col = 1; col <= layout.getColumnCount(); col++) {
            ColumnSpec colSpec = layout.getColumnSpec(col);
            System.out.print(colSpec.toShortString());
            if (col < layout.getColumnCount())
                System.out.print(", ");
        }
        System.out.println();
    }
View Full Code Here

     * @param layout   the {@code FormLayout} to inspect
     */
    public static void dumpColumnSpecs(FormLayout layout) {
        System.out.print("COLUMN SPECS:");
        for (int col = 1; col <= layout.getColumnCount(); col++) {
            ColumnSpec colSpec = layout.getColumnSpec(col);
            System.out.print(colSpec.toShortString());
            if (col < layout.getColumnCount()) {
                System.out.print(", ");
            }
        }
        System.out.println();
View Full Code Here

        super(new JPanel());
        builder = new ButtonBarBuilder((JPanel)getContainer());
    }

    public void setMinimumButtonSize(Size minimumSize) {
        this.columnSpec = new ColumnSpec(minimumSize);
    }
View Full Code Here

    CellConstraints cc = new CellConstraints();

    //======== this ========
    setLayout( new FormLayout(
      new ColumnSpec[]{
        new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW ),
        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        new ColumnSpec( ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.NO_GROW ),
      },
      new RowSpec[]{
        new RowSpec( RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW ),
        FormFactory.LINE_GAP_ROWSPEC,
        new RowSpec( RowSpec.FILL, Sizes.dluY( 60 ), FormSpec.DEFAULT_GROW )
      } ) );

    //---- tagCombo ----
    tagCombo.setEditable( true );
    add( tagCombo, cc.xy( 1, 1 ) );

    //---- addButton ----
    addButton.setText( "+" );
    add( addButton, cc.xy( 3, 1 ) );

    //======== scrollPane1 ========
    {
      scrollPane1.setViewportView( tagList );
    }
    add( scrollPane1, cc.xy( 1, 3 ) );

    //======== panel1 ========
    {
      panel1.setLayout( new FormLayout(
        new ColumnSpec[]{
          new ColumnSpec( ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW )
        },
        new RowSpec[]{
          new RowSpec( RowSpec.TOP, Sizes.DEFAULT, FormSpec.DEFAULT_GROW )
        }
      ) );
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.layout.ColumnSpec

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.