Hello, I am new to this site, but have been coding in Java for a while. I just started using the Swing Classes and have a problem. I have a large app, but can recreate the problem in a small app. The program is that the app appears to complete the main() but just hangs and does not end. I have recreated this problem in 1.4 and 1.5?? (5.0). Here's my short verison of code. Please send any ideas, I am sure I am missing something.
import javax.swing.*;
public class TestJava
{
public static void main(String[] args)
{
JDialog crap = new JDialog();
crap.setDefaultLookAndFeelDecorated(true);
crap.setModal(true);
crap.setVisible(true);
System.out.println("Exit");
}
}
I am running this from the command prompt, and I see "Exit", but then it just hangs.
Please help.
import javax.swing.*;
public class TestJava
{
public static void main(String[] args)
{
JDialog crap = new JDialog();
crap.setDefaultLookAndFeelDecorated(true);
crap.setModal(true);
crap.setVisible(true);
System.out.println("Exit");
}
}
I am running this from the command prompt, and I see "Exit", but then it just hangs.
Please help.