wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to retrieve an icon from JTextPane ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to retrieve an icon from JTextPane ??" Watch "How to retrieve an icon from JTextPane ??" New topic
Author

How to retrieve an icon from JTextPane ??

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
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
 
Don't get me started about those stupid light bulbs.
 
subject: How to retrieve an icon from JTextPane ??
 
Similar Threads
JTextPane default font
how to retrive more than one match
Using JTextPane for html
JTabbedPane - how to set the tab's size?
JTextPane +insert text,image with style