• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

JEditorPane show image when event click on href

 
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....
 
Rancher
Posts: 3210
29
  • 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???

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic