Bonjour,
J'ai un JTable où j'affiche des informations et je souhaiterais mettre le couleur de fond.
J'ai donc fait ceci mais mon code html ne prend pas ma couleur de fond.
Comment faire?
Merci de votre aideCode:
1
2
3
4
5
6
7
8 public String toString(){ String chaine = "<html><body> <style color='"+module.getCouleur()+"'><p style='text-align: center;'>"+module.getNom()+"</p>" + "<p style='text-align: center;'>"+module.getAbreviation()+"</p>" + "<p style='text-align: center;'>"+nbSeanceModule+"/" + module.getNbSeance()+"</p></style></body></html>"; return chaine; }