This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes JPanel and DOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPanel and DOS" Watch "JPanel and DOS" New topic

JPanel and DOS

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
Is it possible to put a DOS window into a JPanel? If it is possible will it still have the same funcitions as a regular DOS window?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

If you mean the actual DOS Command prompt, then no. You could emulate one using a JTextArea and issue commands through Runtime().exec(...).

I guess the real question is why do you want to do this?

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: JPanel and DOS