APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.tools.jconsole

public Class OutputViewer

extends Object
Class Inheritance
Imports
java.awt.Font, java.awt.event.WindowAdapter, .WindowEvent, java.io.*, javax.swing.*

A simple console window to display messages sent to System.out and System.err. A stop-gap solution until an error dialog is implemented.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static JFrame
private static JTextArea

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
private static void
public static void
init()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

frameback to summary
private static JFrame frame
taback to summary
private static JTextArea ta

Constructor Detail

OutputViewerback to summary
public OutputViewer()

Method Detail

appendback to summary
private static void append(String s)
appendlnback to summary
private static void appendln(String s)
initback to summary
public static void init()
sun.tools.jconsole back to summary

private Class OutputViewer.PipeListener

extends Thread
Class Inheritance

Field Summary

Modifier and TypeField and Description
private BufferedReader
private PipedInputStream
private String
public PrintStream
Inherited from java.lang.Thread:
MAX_PRIORITYMIN_PRIORITYNORM_PRIORITY

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PrintStream
create(String name)

public void
run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

This method is run by the thread when it executes.

Inherited from java.lang.Thread:
activeCountcheckAccessclonecurrentThreaddumpStackenumerategetAllStackTracesgetContextClassLoadergetDefaultUncaughtExceptionHandlergetIdgetNamegetPrioritygetStackTracegetStategetThreadGroupgetUncaughtExceptionHandlerholdsLockinterruptinterruptedisAliveisDaemonisInterruptedisVirtualjoinjoinjoinjoinofPlatformofVirtualonSpinWaitsetContextClassLoadersetDaemonsetDefaultUncaughtExceptionHandlersetNamesetPrioritysetUncaughtExceptionHandlersleepsleepsleepstartstartVirtualThreadthreadIdtoStringyield

Field Detail

brback to summary
private BufferedReader br
inPipeback to summary
private PipedInputStream inPipe
nameback to summary
private String name

Hides java.lang.Thread.name.

psback to summary
public PrintStream ps

Constructor Detail

PipeListenerback to summary
private PipeListener(String name)

Method Detail

createback to summary
public static PrintStream create(String name)
runback to summary
public void run()

Overrides java.lang.Thread.run.

Implements java.lang.Runnable.run.

Doc from java.lang.Thread.run.

This method is run by the thread when it executes. Subclasses of Thread may override this method.

This method is not intended to be invoked directly. If this thread is a platform thread created with a Runnable task then invoking this method will invoke the task's run method. If this thread is a virtual thread then invoking this method directly does nothing.