1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| Object[][] donnees = {
{"Swing", "Astral", "standard",
Color.red, Boolean.TRUE},
{"Swing", "Mistral", "standard",
Color.yellow, Boolean.FALSE},
{"Gin", "Oasis", "standard",
Color.blue, Boolean.FALSE},
{"Gin", "boomerang", "compétition",
Color.green, Boolean.TRUE},
{"Advance", "Omega", "performance",
Color.cyan, Boolean.TRUE},
} ;
String[] titreColonnes = {"modèle","marque","homologation","couleur","vérifié ?"};
JTable jTable1 = new JTable(donnees,titreColonnes);
jTable1.setBounds(150,150,300,100);
conteneur.add(jTable1); |
Partager