Bonjour,
Je voulais savoir si c'était possible d'utiliser un setForeground pour attribuer une couleur à la valeur de ma variable String. Est ce qu'il y a besoin d'une bibliothèque?
erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 import java.awt.*; tra.setForeground(Color.GREEN);
Multiple markers at this line
- The method setForeground(int) is undefined for the
type String
Partager