I have a JOptionPane.showInternalOptionDialog object with no buttons and as a message object it has a label which is of 600x600 pixels in size
My code to invoke the JOptionPane in question looks like this
So far everything works just fine. The label object that is registered as a message object in the JOptionPane has a MouseListener attached to it.
The user is suppose to close the JOptionPane object by clicking on the label it has as a message object but this is where the problems begins.
I would like to close the JInternalFrame or JDialog that is called by JOptionPane.showInternalOptionDialog after the user has clicked on
the CoverImageLabel object. This seems almost impossible to do since my JOptionPane doesn't have no close or cancel button. I have tried
this using the following method but everthing freezes up on the application itself:
Is it possible to accomplish what i am trying to do here? Any help or hint is greatly much appreciated. Apologizes
for any bad english or java