File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Image size
jpanel help
Background image in JPanel
Glass panes -- transparent panes
Adding Gif to Gui