dcsimg

How can I display images in an TextArea?

John Zukowski

AWT TextArea components only support displaying text. You cannot display images in them. If you don't mind using the Swing components, you can use either the JEditorPane or JTextPane to display images within text components.