use of javafx.scene.input.ClipboardContent in project trex-stateless-gui by cisco-system-traffic-generator.
the class LogsView method copyToClipboard.
/**
* Copy logs to clipboard
*/
public void copyToClipboard() {
final Clipboard clipboard = Clipboard.getSystemClipboard();
final ClipboardContent content = new ClipboardContent();
content.putString(sb.toString());
clipboard.setContent(content);
}
use of javafx.scene.input.ClipboardContent in project jgnash by ccavanaugh.
the class ConsoleDialogController method handleCopyToClipboard.
@FXML
private void handleCopyToClipboard() {
final ClipboardContent content = new ClipboardContent();
content.putString(consoleArea.getText());
Clipboard.getSystemClipboard().setContent(content);
}
Aggregations