This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Adding an Image to a JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding an Image to a JTextPane" Watch "Adding an Image to a JTextPane" New topic
Author

Adding an Image to a JTextPane

ben riches
Ranch Hand

Joined: Nov 08, 2002
Posts: 126
Hello All,
How can I insert an image into my JTextPane. After the text I already have there?


Thanks
Ben
Rian Fergusson
Greenhorn

Joined: Feb 03, 2004
Posts: 8
hope this helps
http://javaalmanac.com/egs/javax.swing.text/tp_ImageText.html
[ February 11, 2004: Message edited by: Rian Fergusson ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adding an Image to a JTextPane
 
Similar Threads
addMouseListener to JFrame
Images
JTextPane inside JScrollPane
Word wrap and other issues with JTextPane
JButton and opening new window