Why not just directly call System.exit(0); ?

Jonathan

----- Original Message -----
From: "Andrew Davison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 12:39 PM
Subject: [JAVA3D] Problems quitting a Fullscreen application


> Dear All,
>
> I've written a fullscreen application which catches key presses
> in a Behaviour object. One of the things it does is to call
> gd.setFullScreenWindow(null) and then System.exit(0) when the
> user types 'q'.
>
> The problem is that this action hangs 3 times out of 5, and
> I think it's the exit() call that's the culprit.
>
> A strange aspect of this is that if I do not make the
> top-level frame undecorated then the key press always works.
>
> I'm using the latest versions of Java and Java 3D.
>
> Any suggesions?
>
> - Andrew
> --------------------------------------------------------------------------
---
> Dr. Andrew Davison             E-mail: [EMAIL PROTECTED]
> Dept. of Computer Engineering  Fax: +66 74 212895 (then 201 after office
hrs)
> Prince of Songkla University      Tel: +66 74 211030 x2240 (then x316)
> Hat Yai, Songkhla 90112, Thailand  or: +66 74 212895 x316
> http://fivedots.coe.psu.ac.th/~ad
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to