A
Aryeh M. Friedman
I am using linux-jdk 6 (update 2) on freebsd... all my other code runs
fine (all non-GUI) but this little snippet opens the JFrame then
immediatly closes it and exits:
import javax.swing.JFrame;
public class Main
{
public static void main(String[] args)
{
JFrame frame=new JFrame();
frame.pack();
frame.setVisible(true);
while(true)
;
}
}
fine (all non-GUI) but this little snippet opens the JFrame then
immediatly closes it and exits:
import javax.swing.JFrame;
public class Main
{
public static void main(String[] args)
{
JFrame frame=new JFrame();
frame.pack();
frame.setVisible(true);
while(true)
;
}
}