JTextComponent的常用API

设置属性:setEditbale setDragEnabled setDisabledTextColor setMargin

选择:getSelectedText  selectAll select getSelectionStart getSelectionEnd setSelectionColor setSelectedTextColor

模型和视图坐标变换:modelToView viewToModel

编辑命令: cut copy paste replaceSelection getActions getInputMap

操作光标和选择亮区:setCaret setCaretColor setCaretPositon addCaretListener setNavigationFilter setHighlighter

读写文本:read write

 

 

Document的一些常用方法:

setDocumentFilter addDocumentListener addUndoableEditListener getLength getStartPosition getEndPosition getText

你可能感兴趣的:(component)