This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Icon in JTextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Icon in JTextArea" Watch "Icon in JTextArea" New topic
Author

Icon in JTextArea

Sachin dev
Greenhorn

Joined: Aug 15, 2001
Posts: 7
hi ,
Is it possible to insert or paint an Icon in JTextArea and whenever needed ,it should be removed,I also want editable text inside my JTextArea.
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

I don't think so. Not with a JTextArea.
You could use a JEditorPane or JTextPane probably though. Since it will accept HTML. And it is still Editable.
Sachin dev
Greenhorn

Joined: Aug 15, 2001
Posts: 7
Thanx ,Mr/Ms Gregg Bolinger
Could u please reply with more details(icon in JTextPane or JEditorPane) ,if possible with a example
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Icon in JTextArea
 
Similar Threads
wraping in JTable cell
Java 1.5 StringBuffer/StringBuilder
dealing with setting up text areas
Radiobutton circle disappears when using icon
Lets play a word game...