String.setColor() ? You want to look at javax.swing.JEditorPane, or its subclass JTextPane. These are more complex than TextArea, but they allow for styled text, which TextArea does not. [ September 12, 2003: Message edited by: Ernest Friedman-Hill ]
you mean the chatbox is build with javax.swing.jeditorpane?
I mean that java.awt.TextArea and javax.swing.JTextArea don't support "styled text" (i.e., text with varying colors, fonts, and sizes) while JEditorPane and especially JTextPane do. It's doubtful that any Microsoft product is implemented in Java
haha,surely i know MSN cannot be implemented in java.I just wander how can i build a chating application as same as the MSN using in java? what is the visual component i choose as the main window in the chat Box? you mean the JEditorPane is the No 1 choice? ok,i will try it.thanks a lot