wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes How to pass an image of a JLabel to a JTextPane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to pass an image of a JLabel to a JTextPane?" Watch "How to pass an image of a JLabel to a JTextPane?" New topic
Author

How to pass an image of a JLabel to a JTextPane?

Gustavo Bueno
Greenhorn

Joined: Nov 16, 2011
Posts: 1
Hello everybody!

Can anyone give me an example of code to the following situation:

In Window1 have a JTextPane. In window2 have a JLabel in image format. When clicked this JLabel, JTextPane is inserted into the image of the JLabel.


Example code I have:





Thank you!

PS: Sorry my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass an image of a JLabel to a JTextPane?
 
Similar Threads
Background image in JPanel
jpanel help
Adding Gif to Gui
Image size
Glass panes -- transparent panes