本文整理了Java中javax.swing.JTextArea.copy()
方法的一些代码示例,展示了JTextArea.copy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.copy()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:copy
暂无
代码示例来源:origin: ron190/jsql-injection
((PanelTable) MediatorGui.tabResults().getSelectedComponent()).copyTable();
} else if (MediatorGui.tabResults().getSelectedComponent() instanceof JScrollPane) {
((JTextArea) ((JScrollPane) MediatorGui.tabResults().getSelectedComponent()).getViewport().getView()).copy();
代码示例来源:origin: mucommander/mucommander
void copy() {
textArea.copy();
}
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
area.copy();
}
});
代码示例来源:origin: com.darwinsys/darwinsys-api
public void actionPerformed(ActionEvent e) {
ta.copy();
}
}
代码示例来源:origin: IanDarwin/darwinsys-api
public void actionPerformed(ActionEvent e) {
ta.copy();
}
}
代码示例来源:origin: IanDarwin/javasrc
public void actionPerformed(ActionEvent e) {
ta.copy();
}
});
代码示例来源:origin: stackoverflow.com
else if (e.getActionCommand().equalsIgnoreCase("Copy"))
{
JTextArea a = new JTextArea(); // CREATING A NEW OBJECT
a.setEditable(true);
a.copy();
} // AS Soon as the code comes HERE THE Instance IS LOST with the data
代码示例来源:origin: locationtech/jts
void btnSelect_actionPerformed(ActionEvent e) {
txtGeomView.selectAll();
txtGeomView.copy();
}
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
final StringBuffer selectionBuffer = new StringBuffer();
final int[] selection = area.getSelectedRows();
for (final int element : selection) {
for (int i = 0; i < area.getColumnCount(); i++) {
selectionBuffer.append(area.getModel().getValueAt(
area.convertRowIndexToModel(element), i));
if (i < area.getColumnCount() - 1) {
selectionBuffer.append(",");
}
}
selectionBuffer.append("\n");
}
final JTextArea myTempArea = new JTextArea();
myTempArea.setText(selectionBuffer.toString());
myTempArea.selectAll();
myTempArea.copy();
// area.removeRowSelectionInterval(0, area.getRowCount() - 1 );
}
});
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
final StringBuffer selectionBuffer = new StringBuffer();
final int[] selection = area.getSelectedRows();
for (final int element : selection) {
for (int i = 0; i < area.getColumnCount(); i++) {
selectionBuffer.append(area.getModel().getValueAt(
area.convertRowIndexToModel(element), i));
if (i < area.getColumnCount() - 1) {
selectionBuffer.append(',');
}
}
selectionBuffer.append('\n');
}
final JTextArea myTempArea = new JTextArea();
myTempArea.setText(selectionBuffer.toString());
myTempArea.selectAll();
myTempArea.copy();
}
});
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
@Override
public void actionPerformed(final ActionEvent cpEvent) {
final String stringFile =
getFileFromPath(FileSystemTree.this.getSelectionPath());
if(stringFile.startsWith(GR_PANEL)) {
// An error occured
Logger.log(stringFile, 4);
} else {
final JTextArea myTempArea = new JTextArea(stringFile);
myTempArea.selectAll();
myTempArea.copy();
}
} // actionPerformed
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
@Override
public void actionPerformed(ActionEvent e)
{
console.selectAll();
console.copy();
console.select(0, 0);
}
};
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public void actionPerformed(final ActionEvent e) {
final StringBuffer selectionBuffer = new StringBuffer();
final int[] selection = area.getSelectedRows();
for (final int element : selection) {
for (int i = 0; i < area.getColumnCount(); i++) {
selectionBuffer.append(area.getModel().getValueAt(
area.convertRowIndexToModel(element), i));
if (i < area.getColumnCount() - 1) {
selectionBuffer.append(',');
}
}
selectionBuffer.append('\n');
}
final JTextArea myTempArea = new JTextArea();
myTempArea.setText(selectionBuffer.toString());
myTempArea.selectAll();
myTempArea.copy();
// area.removeRowSelectionInterval(0, area.getRowCount() - 1 );
}
});
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
myTempArea.setText(selectionBuffer.toString());
myTempArea.selectAll();
myTempArea.copy();
table.removeRowSelectionInterval(0,
table.getRowCount() - 1);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
jtpSource.copy();
} else {
jtpMain.copy();
内容来源于网络,如有侵权,请联系作者删除!