1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
tableau = new JPanel();
tableau.setPreferredSize(new Dimension((40 * Colonnes) + 30, 205));
tableau.setLayout(new GroupLayout());
for (int i = 0; i < Colonnes; i++)
{
ConsButtonE = new Constraints(new Leading(i*40, 10, 10), new Leading(200 ,12, 12));
listOfConstraintsE.add(ConsButtonE);
tableau.add(getJButtonE(i+1),listOfConstraintsE.get(i));
Constraints cont;
cont = new Constraints(new Leading(i*40, 10, 10), new Leading(0, 12, 12));
tableau.add(getJlabelColorisei(i+1),cont );
System.out.println("i : " + i + " " + listOfConstraintsE.size() + " " + listOfButtonE.size() + " " + listOfLabelE.size() );
} |