Java JTextArea out(final JTextArea ta)

Here you can find the source of out(final JTextArea ta)

Description

out

License

Apache License

Declaration

public static OutputStream out(final JTextArea ta) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.*;

import javax.swing.*;

public class Main {
    public static OutputStream out(final JTextArea ta) {
        return new OutputStream() {

            public void write(int b) throws IOException {
                ta.append(String.valueOf((char) b));
            }// w w  w. jav a  2s  .  c o m
        };

    }
}

Related

  1. getTextDimension(JTextArea textArea, Dimension maxDimension)
  2. initLogConsole(final JTextArea textArea)
  3. initTextAreaEdit(JTextArea j1)
  4. makeLabelStyle(JTextArea textArea)
  5. makeTabMoveFocus(JTextArea textArea)
  6. preventInputingNewLineOnTextArea(JTextArea txe, AbstractAction actionOnEnter)
  7. printExceptionInfo(Exception e, JTextArea console)
  8. printInfo(JTextArea txtInfo, String infoString)
  9. printInTextArea(JTextArea log, String[] toPrint)