Je voudrais savoir comment faire pour etre tjs le plus bas dans une JTextArea dans laquel il y a une JScrollPane. (Genre MSN quand un msg arrive) Thx Ponpon
textArea.setCaretPosition(textArea.getDocument().getLength()); [edit : c'est automatique, normalement] http://java.sun.com/docs/books/tut [...] tarea.html
Merci beaucoup