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()
Sinon j'sais pô
-------------------------------
Réponse au message :
-------------------------------
> 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 ?
>
> merci
>
> Polux.6
