Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JEditorPane show image when event click on href  RSS feed

 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!!!

i want show one image when i click on one "href"

i have write this code....



help me please....
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general when you add a component to a visible GUI the code is:



This makes sure the layout manager is invoked and the new component is painted.

However, in your case there is no need to do that since there is an easier solution. Don't create a new label. Just change the icon of the exiting label:

 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!!!

i'm write in another code....



but the problems is in database....
for insert in database i write this code:



but if i want show image with path how to do???
i have problem when i want show image relative to path...

how to do???

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!