Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ServantOfGlaaki

[java] Redirecting System.err to a JTextArea???

This topic is 5233 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Hmm, quick idea would be to write your own class that extends PrintWriter and set it as the System.err output. Then have the new class pipe its output into a text field of your choice.

Share this post


Link to post
Share on other sites
This is something that is covered in the Java tutorial on Sun''s site. Since I have not added the link to the FAQ yet, I''ll allow this thread to remain open, but in the future, questions such as these should be attempted on your own first.

http://chaos.webhop.org

Share this post


Link to post
Share on other sites
Go right to the source.

http://java.sun.com/docs/books/tutorial/index.html



First make it work, then make it fast. --Brian Kernighan

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities. We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)

Do not interrupt your enemy when he is making a mistake. - Napolean Bonaparte

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!