• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hide Image

 
Shae Oommen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to hide an image on a GUI?
image is created as

private final ImageIcon img_model_file = getIcon(path of image);

i need to hide this image when some event takes place? is this possible?
if so please advice on how to do this?
Thanks

Shae
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how is the image shown?

in a JLabel? paintComponent()? other?
 
Shae Oommen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a JLabel.......Thanks for the reply
 
Shae Oommen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, i just overlooked the JLabel part.
I was able to fix it.

Shae
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!