Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to retrieve an icon from JTextPane ??  RSS feed

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
Boost this thread!