Polux6
Messages postés55Date d'inscriptionvendredi 7 février 2003StatutMembreDernière intervention20 février 2004
-
29 juil. 2003 à 13:22
CoreBreaker
Messages postés540Date d'inscriptiondimanche 23 mars 2003StatutMembreDernière intervention 5 octobre 2007
-
30 juil. 2003 à 01:27
Salute !
Est ce possible dans un JTextArea d'écrire de differente couleur, de differente police et de differente taille...
enfin pouvoir tout faire dans un seul jtextarea
Sinon comment faire ?
tominfo
Messages postés93Date d'inscriptionsamedi 17 mai 2003StatutMembreDernière intervention30 janvier 2009 29 juil. 2003 à 16:53
Tu as essayé setForeground, setBackground, setSelectionColor(),...
javadoc :
setSelectedTextColor
public void setSelectedTextColor(Color c)Sets the current color used to render the selected text. Setting the color to null is the same as Color.black. Setting the color results in a PropertyChange event ("selectedTextColor") being fired.
Parameters:
c - the color
See Also:
getSelectedTextColor()