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;
}