Package javax.swing.GroupLayout

Examples of javax.swing.GroupLayout.SequentialGroup


    }
    return g;
  }
 
  private Group createVerticalGroup(GroupLayout layout, Group ... columns) {
    SequentialGroup g = layout.createSequentialGroup();
    for (Group c: columns) {
      g.addGroup(c).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED);
    }
    return g;
  }
View Full Code Here


        }
        return group;
    }

    private SequentialGroup createSequentialGroup(GroupLayout layout) {
        SequentialGroup group = layout.createSequentialGroup();
        group.addContainerGap();

        boolean first = true;
        for (UserVariable variable: variablesToQuery) {
            if (!first) {
                group.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED);
            }
            first = false;

            variable.addToSequential(group);
        }
        group.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE);
        return group;
    }
View Full Code Here

        for (JComponent jLabel : components) {
            horisontalGroup.addComponent(jLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE);
        }
        jPanel1Layout.setHorizontalGroup(horisontalGroup);
        ParallelGroup verticalGroup = jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING);
        SequentialGroup sequentialGroup = jPanel1Layout.createSequentialGroup();
        for (JComponent jLabel : components) {
            sequentialGroup.addComponent(jLabel);
            sequentialGroup.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED);
        }
        verticalGroup.addGroup(sequentialGroup);
        jPanel1Layout.setVerticalGroup(verticalGroup);
        return panel;
    }
View Full Code Here

TOP

Related Classes of javax.swing.GroupLayout.SequentialGroup

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.