Hello, in this code suppose that the dlg is defined in one case as a JDialog, I run it and it seems that 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.
And I need the JPanel to behave like the JDialog in that sense.. how could I deal with this?
Thanks in advance
But when I run the code with dlg defined as JPanel it prints the message before I close the JPanel.
Code:
jmnuTest.addActionListener(
new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
jmnuTest_actionPerformed(e);
}
});
Code:
private void jmnuTest_actionPerformed(ActionEvent e)
{
Testwhen dlg = new Testwhen(this);
System.out.println("I'm here");
}
And I need the JPanel to behave like the JDialog in that sense.. how could I deal with this?
Thanks in advance
Comment