| Modifiers | Name | Description |
|---|---|---|
static String |
AUTO_INDENT |
Action name for automatic indentation. |
static String |
DELETE |
Action name for backspace deletion. |
static String |
FIND |
Action name for opening the find dialog. |
static String |
FIND_NEXT |
Action name for repeating the next find. |
static String |
FIND_PREVIOUS |
Action name for repeating the previous find. |
static String |
REPLACE |
Action name for opening the replace dialog. |
| Fields inherited from class | Fields |
|---|---|
class JTextPane |
W3C_LENGTH_UNITS, HONOR_DISPLAY_PROPERTIES, FOCUS_ACCELERATOR_KEY, DEFAULT_KEYMAP, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Constructor and description |
|---|
TextEditor()Creates a new instance of TextEditor |
TextEditor(boolean tabsAsSpaces)Creates a new instance of TextEditor |
TextEditor(boolean tabsAsSpaces, boolean multiLineTab)Creates a new instance of TextEditor |
TextEditor(boolean tabsAsSpaces, boolean multiLineTab, boolean unwrapped)Creates a new instance of TextEditor |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
addNotify(){@inheritDoc} |
|
public int |
getNumberOfPages(){@inheritDoc} |
|
public PageFormat |
getPageFormat(int pageIndex){@inheritDoc} |
|
public Printable |
getPrintable(int param){@inheritDoc} |
|
public boolean |
getScrollableTracksViewportWidth(){@inheritDoc} |
|
public boolean |
isMultiLineTabbed()Whether using the tab key indents the selected lines of code |
|
public void |
isMultiLineTabbed(boolean multiLineTab)Enables or disables indenting all selected lines when tabbing. |
|
public static boolean |
isOvertypeMode()
|
|
public boolean |
isTabsAsSpaces()
|
|
public void |
isTabsAsSpaces(boolean tabsAsSpaces)Enables or disables replacing typed tab characters with spaces. |
|
public boolean |
isUnwrapped()
|
|
public int |
print(Graphics graphics, PageFormat pageFormat, int page){@inheritDoc} |
|
protected void |
processKeyEvent(KeyEvent e){@inheritDoc} |
|
public void |
removeNotify(){@inheritDoc} |
|
public void |
replaceSelection(String text){@inheritDoc} |
|
public void |
setBounds(int x, int y, int width, int height){@inheritDoc} |
|
public void |
setOvertypeMode(boolean isOvertypeMode)Set the caret to use depending on overtype/insert mode |
|
public void |
setUnwrapped(boolean unwrapped)
|
Action name for automatic indentation.
Action name for backspace deletion.
Action name for opening the find dialog.
Action name for repeating the next find.
Action name for repeating the previous find.
Action name for opening the replace dialog.
Creates a new instance of TextEditor
Creates a new instance of TextEditor
tabsAsSpaces - whether typed tabs should be converted to spacesCreates a new instance of TextEditor
tabsAsSpaces - whether typed tabs should be converted to spacesmultiLineTab - whether tab actions should affect all selected linesCreates a new instance of TextEditor
tabsAsSpaces - whether typed tabs should be converted to spacesmultiLineTab - whether tab actions should affect all selected linesunwrapped - whether long lines should avoid viewport wrapping{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Whether using the tab key indents the selected lines of code
Enables or disables indenting all selected lines when tabbing.
multiLineTab - the new multiLine tab value
Enables or disables replacing typed tab characters with spaces.
tabsAsSpaces - whether tabs are converted to spaces
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Set the caret to use depending on overtype/insert mode
isOvertypeMode - the new mode; true = overtype
unwrapped - the new unwrapped valueCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.