本文整理了Java中javax.swing.JTextArea.addCaretListener()
方法的一些代码示例,展示了JTextArea.addCaretListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.addCaretListener()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:addCaretListener
暂无
代码示例来源:origin: bobbylight/RSyntaxTextArea
public void install(JTextArea textArea) {
textArea.addCaretListener(this);
textArea.addComponentListener(this);
textArea.addFocusListener(this);
textArea.addKeyListener(this);
textArea.addMouseListener(this);
textArea.addMouseMotionListener(this);
}
代码示例来源:origin: antlr/antlrworks
public XJTextArea() {
jTextArea = new JTextArea();
jTextArea.addCaretListener(new CaretListener() {
public void caretUpdate(CaretEvent e) {
keyValueChanged(KV_TEXT_STRING, jTextArea.getText());
}
});
}
代码示例来源:origin: antlr/antlr3
public InputMultiEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: antlr/antlr3
public InputMultiEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: antlr/antlr3
public OutputAstEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: org.antlr/gunit
public OutputAstEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: org.antlr/gunit
public InputMultiEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: antlr/antlr3
public OutputAstEditor() {
super();
scroll.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));
textArea.addCaretListener(this);
}
代码示例来源:origin: stackoverflow.com
ta.addCaretListener(new CaretListener() {
@Override
public void caretUpdate(CaretEvent e) {
代码示例来源:origin: stackoverflow.com
consoleTextPane.addCaretListener(this);
consoleTextPane.addKeyListener(this);
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_TextQuery.addCaretListener(this);
m_TextQuery.setFont(new Font("Monospaced", Font.PLAIN, m_TextQuery
.getFont().getSize()));
代码示例来源:origin: Exslims/MercuryTrade
this.jsonArea.addCaretListener(e -> {
this.viewPanel.remove(this.errorLabel);
this.viewPanel.add(this.treePanel, BorderLayout.CENTER);
代码示例来源:origin: Waikato/weka-trunk
m_TextQuery.addCaretListener(this);
m_TextQuery.setFont(new Font("Monospaced", Font.PLAIN, m_TextQuery
.getFont().getSize()));
代码示例来源:origin: igvteam/igv
patternField.addCaretListener(new CaretListener() {
@Override
public void caretUpdate(CaretEvent e) {
代码示例来源:origin: org.apache.uima/uimaj-tools
/**
* Creates the text area.
*/
private void createTextArea() {
try {
this.textArea = new JTextArea();
this.addCursorOwningComponent(this.textArea);
Border emptyBorder = BorderFactory.createEmptyBorder(2, 4, 2, 2);
Border grayLineBordre = BorderFactory.createLineBorder(Color.gray, 1);
this.textArea.setBorder(BorderFactory.createCompoundBorder(grayLineBordre, emptyBorder));
this.textArea.setSelectionColor(selectionColor);
this.textArea.setEditable(true);
this.textArea.setLineWrap(true);
this.textArea.setWrapStyleWord(true);
this.textArea.setText(defaultText);
this.textArea.addMouseListener(new PopupListener(this));
// textArea.setFocusable(true);
this.textArea.addFocusListener(new TextFocusHandler(this));
this.textArea.getDocument().addDocumentListener(new TextChangedListener(this));
this.textArea.addCaretListener(new CaretChangeHandler(this));
this.undoMgr = new UndoMgr(this);
this.textArea.getDocument().addUndoableEditListener(this.undoMgr);
} catch (Exception e) {
handleException(e);
}
}
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
public void install(JTextArea textArea) {
textArea.addCaretListener(this);
textArea.addComponentListener(this);
textArea.addFocusListener(this);
textArea.addKeyListener(this);
textArea.addMouseListener(this);
textArea.addMouseMotionListener(this);
}
代码示例来源:origin: org.nuiton.thirdparty/rsyntaxtextarea
public void install(JTextArea textArea) {
textArea.addCaretListener(this);
textArea.addComponentListener(this);
textArea.addFocusListener(this);
textArea.addKeyListener(this);
textArea.addMouseListener(this);
textArea.addMouseMotionListener(this);
}
代码示例来源:origin: Vhati/Slipstream-Mod-Manager
mainArea.addCaretListener( caretListener );
appendArea.addCaretListener( caretListener );
resultArea.addCaretListener( caretListener );
代码示例来源:origin: raydac/netbeans-mmd-plugin
this.editorPane.addCaretListener(new CaretListener() {
@Override
public void caretUpdate(@Nonnull final CaretEvent e) {
内容来源于网络,如有侵权,请联系作者删除!