• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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: 3073
24
  • 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???

 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!