java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
- Direct Known Subclasses:
- JEditorPane, JTextArea, JTextField
- See Also:
- Top Examples, Source Code,
XMLEncoder
, viewToModel(java.awt.Point)
, modelToView(int)
, InputMethodEvent
, Keymap
, getActions()
, DefaultCaret.setUpdatePolicy(int)
, Document
,
DocumentEvent
,
DocumentListener
,
Caret
,
CaretEvent
,
CaretListener
,
TextUI
,
View
,
ViewFactory
public void addCaretListener(CaretListener listener)
- See Also:
CaretEvent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void addInputMethodListener(InputMethodListener l)
- See Also:
Component.getInputMethodRequests()
, Component.getInputMethodListeners()
, Component.removeInputMethodListener(java.awt.event.InputMethodListener)
, InputMethodEvent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Keymap addKeymap(String nm,
Keymap parent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void copy()
- See Also:
Clipboard
, Toolkit.getSystemClipboard()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void cut()
- See Also:
Clipboard
, Toolkit.getSystemClipboard()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final String DEFAULT_KEYMAP
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void fireCaretUpdate(CaretEvent e)
- See Also:
EventListenerList
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final String FOCUS_ACCELERATOR_KEY
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public AccessibleContext getAccessibleContext()
- See Also:
- JComponent, Accessible
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Action[] getActions()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Caret getCaret()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Color getCaretColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public CaretListener[] getCaretListeners()
- See Also:
removeCaretListener(javax.swing.event.CaretListener)
, addCaretListener(javax.swing.event.CaretListener)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getCaretPosition()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Color getDisabledTextColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Document getDocument()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean getDragEnabled()
- See Also:
setDragEnabled(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public char getFocusAccelerator()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Highlighter getHighlighter()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public InputMethodRequests getInputMethodRequests()
- See Also:
Component.addInputMethodListener(java.awt.event.InputMethodListener)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Keymap getKeymap()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Keymap getKeymap(String nm)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Insets getMargin()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public NavigationFilter getNavigationFilter()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Dimension getPreferredScrollableViewportSize()
- See Also:
JComponent.getPreferredSize()
, Scrollable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
- See Also:
JScrollBar.setBlockIncrement(int)
, IllegalArgumentException, Scrollable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean getScrollableTracksViewportHeight()
- See Also:
- Scrollable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean getScrollableTracksViewportWidth()
- See Also:
- Scrollable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
- See Also:
JScrollBar.setUnitIncrement(int)
, IllegalArgumentException, Scrollable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getSelectedText()
- See Also:
setText(java.lang.String)
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Color getSelectedTextColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Color getSelectionColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getSelectionEnd()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getSelectionStart()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getText()
- See Also:
setText(java.lang.String)
, NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getText(int offs,
int len)
throws BadLocationException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getToolTipText(MouseEvent event)
- See Also:
ToolTipManager.registerComponent(javax.swing.JComponent)
, TextUI.getToolTipText(javax.swing.text.JTextComponent, java.awt.Point)
, JComponent.setToolTipText(java.lang.String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TextUI getUI()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isEditable()
- See Also:
setEditable(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JTextComponent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static void loadKeymap(Keymap map,
JTextComponent.KeyBinding[] bindings,
Action[] actions)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle modelToView(int pos)
throws BadLocationException
- See Also:
TextUI.modelToView(javax.swing.text.JTextComponent, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void moveCaretPosition(int pos)
- See Also:
setCaretPosition(int)
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected String paramString()
- See Also:
- JComponent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void paste()
- See Also:
Clipboard
, Toolkit.getSystemClipboard()
, replaceSelection(java.lang.String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected void processInputMethodEvent(InputMethodEvent e)
- See Also:
Component.enableEvents(long)
, Component.addInputMethodListener(java.awt.event.InputMethodListener)
, InputMethodListener
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void read(Reader in,
Object desc)
throws IOException
- See Also:
PlainDocument
, setDocument(javax.swing.text.Document)
, EditorKit.createDefaultDocument()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeCaretListener(CaretListener listener)
- See Also:
CaretEvent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Keymap removeKeymap(String nm)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeNotify()
- See Also:
JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void replaceSelection(String content)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void select(int selectionStart,
int selectionEnd)
- See Also:
moveCaretPosition(int)
, setCaretPosition(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void selectAll()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCaret(Caret c)
- See Also:
getCaret()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCaretColor(Color c)
- See Also:
getCaretColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCaretPosition(int position)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setComponentOrientation(ComponentOrientation o)
- See Also:
- Component,
applyComponentOrientation
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setDisabledTextColor(Color c)
- See Also:
getDisabledTextColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setDocument(Document doc)
- See Also:
getDocument()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setDragEnabled(boolean b)
- See Also:
TransferHandler
, JComponent.setTransferHandler(javax.swing.TransferHandler)
, getDragEnabled()
, GraphicsEnvironment.isHeadless()
, HeadlessException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setEditable(boolean b)
- See Also:
isEditable()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setFocusAccelerator(char aKey)
- See Also:
getFocusAccelerator()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setHighlighter(Highlighter h)
- See Also:
getHighlighter()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setKeymap(Keymap map)
- See Also:
getKeymap()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setMargin(Insets m)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setNavigationFilter(NavigationFilter filter)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSelectedTextColor(Color c)
- See Also:
getSelectedTextColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSelectionColor(Color c)
- See Also:
getSelectionColor()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSelectionEnd(int selectionEnd)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSelectionStart(int selectionStart)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setText(String t)
- See Also:
DefaultCaret
, getText(int, int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setUI(TextUI ui)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void updateUI()
- See Also:
UIManager.getUI(javax.swing.JComponent)
, UIManager.getLookAndFeel()
, JComponent.setUI(javax.swing.plaf.ComponentUI)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int viewToModel(Point pt)
- See Also:
TextUI.viewToModel(javax.swing.text.JTextComponent, java.awt.Point)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void write(Writer out)
throws IOException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples