Skip navigation links 1.51.1

I/O APIs - Swing

See: Description

I/O APIs - Swing 
Package Description
Interfaces for working with input/output tabs.


Just an API/SPI for defining the output window.

What is New (see all changes)?

Use Cases

There is an SPI but additional implementations are not expected. The API is most important.

Simple usage example:

InputOutput io = IOProvider.getDefault().getIO("My Window", true);;
OutputWriter w = io.getOut();
w.println("Line of plain text.");
OutputListener listener = new OutputListener() {
    public void outputLineAction(OutputEvent ev) {
        StatusDisplayer.getDefault().setStatusText("Hyperlink clicked!");
    public void outputLineSelected(OutputEvent ev) {
        // Let's not do anything special.
    public void outputLineCleared(OutputEvent ev) {
        // Leave it blank, no state to remove.
w.println("Line of hyperlinked text.", listener, true);

Exported Interfaces

This table lists all of the module exported APIs with defined stability classifications. It is generated based on answers to questions about the architecture of the module. Read them all...
Group of java interfaces
Interface NameIn/OutStabilitySpecified in What Document?
InputOutputAPIExportedOfficial .../org/openide/windows/package-summary.html

Just an API/SPI for defining the output window.

Implementation Details

What do other modules need to do to declare a dependency on this one, in addition to or instead of a plain module dependency?

You will very likely also want to declare


to ensure that an Output Window implementation is in fact enabled.

Read more about the implementation in the answers to architecture questions.

Skip navigation links 1.51.1

Built on June 4 2024.  |   Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.