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

public Class CommandProcessorPanel

extends JPanel
Class Inheritance
Imports
java.io.*, java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.event.*, javax.swing.text.*, sun.jvm.hotspot.CommandProcessor, 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
pack-priv ByteArrayOutputStream
private CommandProcessor
private String
private static final boolean
private JTextArea
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)

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

baosback to summary
pack-priv ByteArrayOutputStream baos
commandsback to summary
private CommandProcessor commands
curTextback to summary
private String curText
DEBUGGINGback to summary
private static final boolean DEBUGGING
editorback to summary
private JTextArea editor
markback to summary
private int mark
updatingback to summary
private boolean updating

Constructor Detail

CommandProcessorPanelback to summary
public CommandProcessorPanel(CommandProcessor cp)

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)
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)