File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 45292
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.
I agree. Here's the link:
subject: Creating Java console in TextArea
It's not a secret anymore!