Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve an icon from JTextPane ??

Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTextPane, into which i can insert icons using
But how do i retrive ithe icon from the JTextPane.
What i mean to say is, suppose the JTextPane contains only text, then i can retrive the text in it using getText() method.
But if the JTextPane contains an icon, then how do i retrive it. To make it more worse, if the JTextPane contains text embedded with icons, how do i retrive everything inside the JTextPane??
...kindest regards
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic