I am using a JDialog
to get payment info, paymentAmount
and Date
is submitted by a JTextfield
and a datechooser.beans.DateChooserCombo
.
When the user close the JDialog
or clicks Cancel
, JDialog
closes.But when they click the Payment button and JDialog
reappears, previously submitted inputs are shown.
I want JDialog
to be default state whenever it appears.Is there a default way to do this, or i have to create my own reset method?