mais si on peux.
tu recupere le document de ton textArea et apres tu fais un insert String avec le Style qui va bien, un truc du genre:
Code :
- style = new SimpleAttributeSet();
- StyleConstants.setAlignment(style,StyleConstants.ALIGN_CENTER);
- myArea.getDocument().insertString(myArea.getDocument().getLength(), "taiste", style);
|
Message édité par veryfree le 14-02-2004 à 16:30:22