summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/gui
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/bjc/utils/gui')
-rw-r--r--base/src/main/java/bjc/utils/gui/TextAreaOutputStream.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/base/src/main/java/bjc/utils/gui/TextAreaOutputStream.java b/base/src/main/java/bjc/utils/gui/TextAreaOutputStream.java
deleted file mode 100644
index fbc58ed..0000000
--- a/base/src/main/java/bjc/utils/gui/TextAreaOutputStream.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package bjc.utils.gui;
-
-import java.io.IOException;
-import java.io.OutputStream;
-
-import javax.swing.JTextArea;
-
-/**
- * An output stream that prints to a JTextArea
- *
- * @author epr
- * @author Levente S\u00e1ntha (lsantha@users.sourceforge.net)
- */
-public class TextAreaOutputStream extends OutputStream {
- private final JTextArea textArea;
-
- /**
- * Create a new output stream attached to a textarea
- *
- * @param console
- * The textarea to write to
- */
- public TextAreaOutputStream(final JTextArea console) {
- this.textArea = console;
- }
-
- @Override
- public void write(final int b) throws IOException {
- textArea.append("" + (char) b);
-
- if (b == '\n') {
- textArea.repaint();
- }
- }
-}