my dog learned polymorphism
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
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: 15302

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
It's not a secret anymore!