[Bluej-discuss] closing terminal window with code

Michael Kölling M.Kolling at kent.ac.uk
Sun Feb 18 17:55:39 GMT 2007


The call System.exit() just ends the program - it does not  
(necessarily) close a terminal window. There is no way to  
programmatically close the terminal window in BlueJ. A Java program  
does not know anything about it's context, so it cannot access the  
window it is using for its output.

Michael

On 15 Feb 2007, at 22:12, Jasmin Paré wrote:

> Hello,
> I'm new to BlueJ developping environnement, I wanted to know more  
> about Java
> programming so I went back to school where we use the BlueJ  
> developping environement
> for wich I'm really happy. I don't know much about it for now but  
> find it interesting.
>
> I found really practicle the closing terminal window line  
> System.exit(); wich doesn't work in BlueJ.
> Under Win XP SP2, BlueJ 2.2.0 and JDK 1.5.0.
>
> I wondered if you had a substitut, I saw that in Sept.16 2004 on  
> release 2.0.0 one of
> the most important change is to close terminal window with it's  
> project. Then I tryed to find in
> the blueJ discuss archives if someone asked befor and seems not. I  
> might missunderstand the change,
> if so, please let me know, if not I would really appreciate to know  
> what would be the line i'm missing.
>
> Thank you in Advance!
>
> Jazz
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss



More information about the bluej-discuss mailing list