Win a copy of Functional Reactive Programming this week in the Other Languages 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
HI,
I have a JTextPane, into which i can insert icons using
insertIcon();
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
..saj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic