Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Icon in JTextArea

 
Sachin dev
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx ,Mr/Ms Gregg Bolinger
Could u please reply with more details(icon in JTextPane or JEditorPane) ,if possible with a example
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic