org.syntax.jedit.JEditTextArea.copy()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中org.syntax.jedit.JEditTextArea.copy()方法的一些代码示例,展示了JEditTextArea.copy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditTextArea.copy()方法的具体详情如下:
包路径:org.syntax.jedit.JEditTextArea
类名称:JEditTextArea
方法名:copy

JEditTextArea.copy介绍

[英]Places the selected text into the clipboard.
[中]将选定文本放入剪贴板。

代码示例

代码示例来源:origin: org.nuiton/nuiton-widgets

@Override
public void copy() {
  editor.copy();
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra

@Override
public void copy() {
  editor.copy();
}

代码示例来源:origin: net.sf.jped/jedit-syntax

public void actionPerformed(ActionEvent evt)
  {
    JEditTextArea textArea = getTextArea(evt);
    textArea.copy();
  }
}

代码示例来源:origin: net.sf.jped/jedit-syntax

/**
 * Deletes the selected text from the text area and places it
 * into the clipboard.
 */
public void cut()
{
  if(editable)
  {
    copy();
    setSelectedText("");
  }
}

相关文章