111112113114115116117118119120121
return painelLabels; } private Group groupComponents(GroupLayout layout, Component ... components) { Group g = layout.createParallelGroup(GroupLayout.Alignment.LEADING); for (Component c: components) { g.addComponent(c); } return g; }
119120121122123124125126127128129
} return g; } private Group createHorizontalGroup(GroupLayout layout, int gap, Group ... columns) { Group g = layout.createSequentialGroup().addContainerGap(); for (Group c: columns) { g.addGroup(c).addGap(gap); } return g; }