This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread 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


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPanel and DOS" Watch "JPanel and DOS" New topic
Author

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
    
    6

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
 
Have you checked out Aspose?
 
subject: JPanel and DOS
 
It's not a secret anymore!