APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvm.hotspot.ui

public Class DebuggerConsolePanel

extends JPanel
Class Inheritance
Imports
java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.event.*, javax.swing.text.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.utilities.*

A JPanel subclass containing a scrollable text area displaying the debugger's console, if it has one. This should not be created for a debugger which does not have a console.

Field Summary

Modifier and TypeField and Description
private String
private Debugger
private static final boolean
private JTextComponent
private int
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
public void
private void
public String
private boolean
public static void
main(String[] args)

private void
public void
requestFocus()

Overrides javax.swing.JComponent.requestFocus.

Requests that this Component gets the input focus.

public void
private String
Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

curTextback to summary
private String curText
debuggerback to summary
private Debugger debugger
DEBUGGINGback to summary
private static final boolean DEBUGGING
editorback to summary
private JTextComponent editor
markback to summary
private int mark
updatingback to summary
private boolean updating

Constructor Detail

DebuggerConsolePanelback to summary
public DebuggerConsolePanel(Debugger debugger)

Method Detail

beginUpdateback to summary
private void beginUpdate()
clearback to summary
public void clear()
endUpdateback to summary
private void endUpdate()
getMarkedTextback to summary
public String getMarkedText()
insertContainsback to summary
private boolean insertContains(DocumentEvent e, char c)
mainback to summary
public static void main(String[] args)
printPromptback to summary
private void printPrompt()
requestFocusback to summary
public void requestFocus()

Overrides javax.swing.JComponent.requestFocus.

Doc from javax.swing.JComponent.requestFocus.

Requests that this Component gets the input focus. Refer to Component.requestFocus() for a complete description of this method.

Note that the use of this method is discouraged because its behavior is platform dependent. Instead we recommend the use of requestFocusInWindow(). If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.

setMarkback to summary
public void setMark()
trimContinuationsback to summary
private String trimContinuations(String text)