Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You gain access to the output window by the previously described methods getOut() and getErr(). For this purpose, those methods return an OutputWriter instance. This class represents an extension of the PrintWriter class of the Java Platform. It specifies two additional println() methods with which hyperlinks can be displayed in the output window. For this purpose, indicate the text as String object and an OutputListener instance. This listener is responsible for executing the action which will be carried out by clicking on the link.
In Listing 17-2 you gain access to the corresponding OutputWriter instance via the getOut() method. As previously mentioned, the println() method gets the name of the link and it gets a listener.