X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FAWTConsole.java;h=6fa7c5c7f6bd606388994e3cd7353e1d08dc1783;hb=a9177efb4097815d9a8031aa22700c61a7d6260a;hp=cf44dcbf8cdc30537aa5fd33c7761d4130d95fd0;hpb=560b04c9edddce9ccc69b59b5e7db934cf1e0cf0;p=jalview.git diff --git a/src/jalview/util/AWTConsole.java b/src/jalview/util/AWTConsole.java index cf44dcb..6fa7c5c 100644 --- a/src/jalview/util/AWTConsole.java +++ b/src/jalview/util/AWTConsole.java @@ -49,6 +49,7 @@ import java.io.PipedOutputStream; import java.io.PrintStream; import jalview.bin.Jalview; +import jalview.bin.Jalview.ExitCode; public class AWTConsole extends WindowAdapter implements WindowListener, ActionListener, Runnable @@ -138,20 +139,20 @@ public class AWTConsole extends WindowAdapter // testing part // you may omit this part for your application // - System.out.println("Hello World 2"); - System.out.println("All fonts available to Graphic2D:\n"); + jalview.bin.Console.outPrintln("Hello World 2"); + jalview.bin.Console.outPrintln("All fonts available to Graphic2D:\n"); GraphicsEnvironment ge = GraphicsEnvironment .getLocalGraphicsEnvironment(); String[] fontNames = ge.getAvailableFontFamilyNames(); for (int n = 0; n < fontNames.length; n++) { - System.out.println(fontNames[n]); + jalview.bin.Console.outPrintln(fontNames[n]); } // Testing part: simple an error thrown anywhere in this JVM will be printed // on the Console // We do it with a seperate Thread becasue we don't wan't to break a Thread // used by the Console. - System.out.println("\nLets throw an error on this console"); + jalview.bin.Console.outPrintln("\nLets throw an error on this console"); errorThrower = new Thread(this); errorThrower.setDaemon(true); errorThrower.start(); @@ -176,7 +177,7 @@ public class AWTConsole extends WindowAdapter } catch (Exception e) { } - Jalview.exit("Window closing. Bye!", 0); + Jalview.exit("Window closing. Bye!", ExitCode.OK); } @Override