This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Creating Java console in TextArea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating Java console in TextArea" Watch "Creating Java console in TextArea" New topic

Creating Java console in TextArea

Andraz Poje
Ranch Hand

Joined: Sep 25, 2008
Posts: 32
Hi. Is it possible to create a simple java console in jpanel?
Or is it possible to show cmd java window while my GUI application is running?
I wanna see errors and output while I am not launching my program via Java IDE...

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38087
You could run a Java™ application via Runtime.exec() and show its input and output on a text area, yes. But it is by no means easy. Start by reading the classic article by Michael Daconta, "When Runtime.exec() won't".

I am moving this discussion because it isn't a "beginning" question.
It is sorta covered in the JavaRanch Style Guide.
subject: Creating Java console in TextArea
Similar Threads
Do not want to print all the message on console
Saving Java Console output to file
Programmatic Login to WebSphere admin console
Passing ResultSet to JSP