From 06189fd167660b155a330029f7ca653cc8419a9d Mon Sep 17 00:00:00 2001 From: Saad Date: Sat, 13 Aug 2022 11:57:23 +0100 Subject: [PATCH] Removed debug lines. --- .../java/com/c159251/a1/jtexteditor/EditorController.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/c159251/a1/jtexteditor/EditorController.java b/src/main/java/com/c159251/a1/jtexteditor/EditorController.java index 0333f66..74fdf9a 100644 --- a/src/main/java/com/c159251/a1/jtexteditor/EditorController.java +++ b/src/main/java/com/c159251/a1/jtexteditor/EditorController.java @@ -93,7 +93,6 @@ public void copyText() { ClipboardContent content = new ClipboardContent(); content.putString(textPane.getSelectedText()); systemClipboard.setContent(content); - System.out.println("copied text = " + systemClipboard.getString()); } public void cutText() { @@ -101,18 +100,14 @@ public void cutText() { String text = textPane.getSelectedText(); selectFrom = textPane.getCaretPosition() - text.length(); selectTo = textPane.getCaretPosition(); - System.out.println("selectFrom b4 = " + selectFrom); - System.out.println("selectTo b4 = " + selectTo); textPane.deleteText(selectFrom, selectTo); content.putString(text); systemClipboard.setContent(content); - System.out.println("cut text = " + systemClipboard.getString()); } public void pasteText() { if (!systemClipboard.getString().isBlank()) { textPane.insertText(textPane.getCaretPosition(), systemClipboard.getString()); - System.out.println("pasted text"); } } @FXML @@ -148,7 +143,6 @@ public void saveTextToFile(File fileToSave) { if (!textPane.getText().isBlank()) { try (BufferedWriter fileWriter = new BufferedWriter(new FileWriter(fileToSave))) { fileWriter.write(textPane.getText()); - } catch (IOException e) { e.printStackTrace(); }