commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Paul <ap003a1...@blueyonder.co.uk>
Subject Re: [JELLY] How to get a Jelly Swing app to actually exit when done
Date Thu, 28 Aug 2003 13:15:31 GMT
Oops,
    I read one message and then replied to a completely different one,sorry!

> I've just resorted to this work around for the non-closing Swing 
> script...
> xmlns:b="jelly:beanshell"
>
>   <b:script>
>        System.exit(0);
>  </b:script>
>    brute force, but successful :)
>
>    Regards
>       Andy Paul

Paul Libbrecht wrote:

> If fear this hasn't been taken care of. I don't know of anything close 
> to that. And if your supposition is right, then the only way to 
> actually make it work would be to have something special for exit 
> within the jelly calling class... not very elegant.
>
> Have you tried the <ant:fail> tag ? This one might have some special 
> treatment within the classloader/security stories.
>
> Paul
>
>
> On Vendredi, juil 18, 2003, at 07:15 Europe/Paris, Andy Paul wrote:
>
>> Sean,
>>    My guess is that jelly wont let you call System.exit and so 
>> instead JFrame is throwing a SecurityException.
>>    Andy
>>
>>> When I hit the "X" button to quit my jelly swing app, it doesn't 
>>> actually exit.  I tried using 
>>> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
>>> but that didn't help.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>



Mime
View raw message