I have a problem. I don\'t know how to display an image by clicking a JButton.
I have a class which can show and hide an image:
/** * */ package
You can simply add a JLable to show image on it. After this, you can setVisible JLabel depending on condition.