import java.io.PipedOutputStream;
import java.io.PrintStream;
+import jalview.bin.Jalview;
+
public class AWTConsole extends WindowAdapter
implements WindowListener, ActionListener, Runnable
{
} catch (Exception e)
{
}
- System.out.println("Window closing. Bye!");
- System.exit(0);
+ Jalview.exit("Window closing. Bye!", 0);
}
@Override