Hello, in this code suppose that the dlg is defined in one case as a JDialog, I run it and the JDialog is executed AFTER closing it, so the message is printed after closing the JDialog.
But when I run the code with dlg defined as JPanel it prints the message before I close the JPanel.
public void actionPerformed(ActionEvent e)
private void jmnuTest_actionPerformed(ActionEvent e)
Testwhen dlg = new Testwhen(this);
So the JPanel prints the message "I'm here" before closing it and the JDialog prints the message after closing it.
I need the JPanel to print the message after closing it, how could I do that?