Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Gustavo Bueno
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic