BOnjour,

Je souhaiterai créer un tableau à partir d'un recordset en utilisant le composant woodstock table.

Pouvez vous me donner un exemple simple de création d'un tableau statique à partir du code Java. Je tente ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
          Table table = new Table();
         table.setId("table");
         table.setTitle("Tableau des donnée");
         table.setStyle("top: 10px; left: 10px;");
 
         TableRowGroup rowGroup = new TableRowGroup();
 
         TableColumn t1 = new TableColumn();
         TableColumn t2 = new TableColumn();
         TableColumn t3 = new TableColumn();
 
         t1.setHeaderText("jour1");
         t2.setHeaderText("jour2");
         t3.setHeaderText("jour3");
 
        StaticText st1 = new StaticText();
        StaticText st2 = new StaticText();
        StaticText st3 = new StaticText();
 
        st1.setText("lundi");
        st2.setText("mardi");
        st3.setText("mercredi");
 
        t1.getChildren().add(st1);
        t2.getChildren().add(st2);
        t3.getChildren().add(st3);
 
        rowGroup.getChildren().add(t1);
        rowGroup.getChildren().add(t2);
        rowGroup.getChildren().add(t3);
 
        table.getChildren().add(rowGroup);

Mais cela n'affiche que l'entete du tableau et le message :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Aucun élément trouvé.
Quelqu'un peut m'éclairer? merci d'avance