You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Andy Paul <ap...@blueyonder.co.uk> on 2003/08/28 15:15:31 UTC
Re: [JELLY] How to get a Jelly Swing app to actually exit when done
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
>
>