Log « JTextArea « Java Swing Q&A





1. Java Log ==> JTextArea    stackoverflow.com

Need: Output a Java application's log into a GUI component, such as a JTextArea. Concern: Need to log things from any class, in a static manner. However, the GUI logger component must ...

2. Is it possible to show log in TextArea    coderanch.com

Looks just like my TextComponentAppender. Basically, what you need to do: - extend AppenderSkeleton - keep a reference to your text area - implement requiresLayout to always return true - after all, it's the layout that will transform the events into strings - implement append similar to below protected void append(LoggingEvent event) { Layout layout = getLayout(); if (layout == null) ...

3. How can I show my log class in jTextArea    java-forums.org

hi I hava a class Worker like this: public class Worker { private string log = ""; public string getLog() { return this.log; } public void work() { this.log += "start"; this.log += "I am working Now"; this.log += "End"; } } what I want is how to refresh my jTextArea while the worker working to show the worker log thank ...