Improved Output Window APIs

There are several new classes that relate to the Output window, resulting in cool enhancements, such as the Output window in Test Runner.

New classes include IOColorLines, IOColors, and IOContainer.

Here's IOColorLines:

try {
    InputOutput io = IOProvider.getDefault().getIO("Colorful Output", null);
    IOColorLines.println(io, "Hello....", Color.GREEN);
    IOColorLines.println(io, "how....", Color.RED);
    IOColorLines.println(io, "are....", Color.BLUE);
    IOColorLines.println(io, "you...?", Color.MAGENTA);
} catch (IOException ex) {
    Logger.getLogger(DemoActionListener.class.getName()).log(Level.SEVERE, null, ex);
}

The above results in:

Comments:

Hi!

Ok, let us start ANSI Colored Console games ;-)

But it is a nice enhancement for NetBeans Platform Server Applications.

bg, josh.

Posted by Aljoscha Rittner on April 02, 2009 at 04:31 PM PDT #

I'm curious what are the dependencies of this colored output window (in terms of NB platform size/module number).
Some applications that use the standard output could use this colored output window instead if the dependencies were not too huge, and the API would be very simple to apply.

Posted by Tiho Lupak on April 02, 2009 at 07:49 PM PDT #

Hi Geertjan!
Could you tell me please, is there an ability to change font in a custom output window?

Posted by Dmitry on August 26, 2011 at 06:02 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
24
25
26
27
28
29
30
   
       
Today