dcsimg

Changing style of selected text in Text Area componet of awt

John Zukowski

Text areas only support a single font for all its content. If you need multi-attributed text, you need to use another component. There is NONE in the core AWT classes. Consider using a JTextPane in Swing.