JamesGordon
Programmer
I have a JFrame with a toggle button. The toggle button shows/hides a JDialog, all well and good.
What I want to be able to do is inform the JFrame that the user has closed the JDialog via the 'X' of the JDialog and then toggle the button to the off state.
Does anybody have an idea on how to achieve this?
Many thanks.
James.
What I want to be able to do is inform the JFrame that the user has closed the JDialog via the 'X' of the JDialog and then toggle the button to the off state.
Does anybody have an idea on how to achieve this?
Many thanks.
James.