public class JTextPane extends Component
This class provides a minimal stub implementation of a styled text component to allow the NDT tool to run in headless environments. The text pane supports document operations but provides no actual text rendering or styling functionality.
It contains a StyledDocument that can capture text content, but all visual operations are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Constructor and Description |
|---|
JTextPane() |
| Modifier and Type | Method and Description |
|---|---|
StyledDocument | getStyledDocument()Return the styled document. |
void | insertComponent(Component comp)Insert a component (no-op). |
void | setSelectionEnd(int i)The selection end (no-op). |
void | setSelectionStart(int i)The selection start (no-op). |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic StyledDocument getStyledDocument()
public void insertComponent(Component comp)
public void setSelectionEnd(int i)
public void setSelectionStart(int i)