File tree Expand file tree Collapse file tree
bCNU/src/main/java/cnuphys/bCNU Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 99import javax .swing .JScrollPane ;
1010import javax .swing .JTextArea ;
1111
12- import cnuphys .bCNU .component .TextAreaWriter ;
1312import cnuphys .bCNU .util .Fonts ;
1413
1514public class TextDisplayDialog extends SimpleDialog {
@@ -21,9 +20,6 @@ public class TextDisplayDialog extends SimpleDialog {
2120
2221 private static final Font _font = Fonts .defaultMono ;
2322
24- // the writer
25- private TextAreaWriter _writer ;
26-
2723 // the text area
2824 private JTextArea _textArea ;
2925
@@ -39,8 +35,6 @@ public TextDisplayDialog(String title) {
3935 _textArea .setLineWrap (false );
4036 _textArea .setFont (_font );
4137
42- _writer = new TextAreaWriter (_textArea );
43-
4438 setSize (WIDTH , HEIGHT );
4539 DialogUtilities .centerDialog (this );
4640 }
@@ -54,15 +48,6 @@ public void setText(String text) {
5448 _textArea .setText (text );
5549 }
5650
57- /**
58- * Get the Writer object that writes to the text area
59- *
60- * @return the writer
61- */
62- public TextAreaWriter getWriter () {
63- return _writer ;
64- }
65-
6651 /**
6752 * Override to create the component that goes in the center.
6853 *
@@ -97,4 +82,4 @@ public Insets getInsets() {
9782 public JTextArea getTextArea () {
9883 return _textArea ;
9984 }
100- }
85+ }
You can’t perform that action at this time.
0 commit comments