aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?