本文整理了Java中javax.swing.text.JTextComponent.paste()
方法的一些代码示例,展示了JTextComponent.paste()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextComponent.paste()
方法的具体详情如下:
包路径:javax.swing.text.JTextComponent
类名称:JTextComponent
方法名:paste
暂无
代码示例来源:origin: skylot/jadx
@Override
public void actionPerformed(ActionEvent ae) {
textComponent.paste();
}
};
代码示例来源:origin: RipMeApp/ripme
@Override
public void actionPerformed(ActionEvent ae) {
lastActionSelected = Actions.PASTE;
savedString = textComponent.getText();
textComponent.paste();
}
};
代码示例来源:origin: stackoverflow.com
lastActionSelected = Actions.PASTE;
savedString = textComponent.getText();
textComponent.paste();
代码示例来源:origin: org.jclarion/clarion-runtime
@Override
protected void paste() {
JTextComponent f = field;
if (f==null) return;
f.paste();
}
代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2
public void actionPerformed(ActionEvent e)
{
txt.paste();
}
});
代码示例来源:origin: net.sf.jt400/jt400
/** Pastes the copied text into the text area. */
public void paste() {
formattrace.paste();
}
代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-misc-swing
@Override
public void actionPerformed(ActionEvent e) {
textField.paste();
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public void actionPerformed(ActionEvent e) {
comp.paste();
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
public void actionPerformed(ActionEvent e) {
jcomp.paste();
}
代码示例来源:origin: SimpleAmazonGlacierUploader/SAGU
@Override
public void actionPerformed(ActionEvent ae) {
lastActionSelected = Actions.PASTE;
savedString = textComponent.getText();
textComponent.paste();
}
};
代码示例来源:origin: tonikelope/megabasterd
@Override
public void actionPerformed(ActionEvent ae) {
_lastActionSelected = _Actions.PASTE;
_savedString = _textComponent.getText();
_textComponent.paste();
}
};
代码示例来源:origin: com.google.code.findbugs/findbugs
@Override
public void actionPerformed(ActionEvent evt) {
JTextComponent text = getTextComponent(evt);
if (text == null) {
return;
}
text.paste();
}
}
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
if (area.isEditable()) {
area.paste();
}
}
});
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
if (area.isEditable()) {
area.paste();
}
}
});
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
if (area.isEditable()) {
area.paste();
}
}
});
代码示例来源:origin: tinyMediaManager/tinyMediaManager
@Override
public void actionPerformed(ActionEvent e) {
if (menu.getInvoker() instanceof JTextComponent) {
((JTextComponent) menu.getInvoker()).paste();
}
}
});
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
private void doPaste()
{
Clipboard clipboard = editor.util.EditorUtilities.getClipboard();
int index = _selectionList.getSelectedIndex();
String selection = _copyBuffer.get( index );
CopyBuffer.instance().notifyOfPaste( index );
clipboard.setContents( new StringSelection( selection ), this );
_textComponent.paste();
setVisible( false );
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
private void doPaste()
{
Clipboard clipboard = editor.util.EditorUtilities.getClipboard();
int index = _selectionList.getSelectedIndex();
String selection = _copyBuffer.get( index );
CopyBuffer.instance().notifyOfPaste( index );
clipboard.setContents( new StringSelection( selection ), this );
_textComponent.paste();
setVisible( false );
}
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void run() {
final JTextComponent text = PasteAction.this
.getTextComponent(evt);
if (text != null) {
if (text.isEditable()) {
text.paste();
text.requestFocus();
}
}
}
});
代码示例来源:origin: net.java.abeille/abeille
public void actionPerformed(ActionEvent evt, JTextComponent target) {
if (target != null) {
if (!target.isEditable() || !target.isEnabled()) {
target.getToolkit().beep();
return;
}
target.paste();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!