Skip navigation links
org.openide.io 1.75

I/O APIs - Swing
Official

See: Description

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

InputOutputAPI

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);
io.select();
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

OpenIDE-Module-Requires: org.openide.windows.IOProvider

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
org.openide.io 1.75