Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Java console in TextArea

 
Andraz Poje
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 48430
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic