aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How can I make command line interface (CLI) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How can I make command line interface (CLI)" Watch "How can I make command line interface (CLI)" New topic
Author

How can I make command line interface (CLI)

Vikas Kumar Sahu
Ranch Hand

Joined: Dec 02, 2003
Posts: 59
Hi All,
How can I make command line interface ( CLI ) In Java using JTextArea or JTextField.
Thanks In advance..
Vikas Sahu
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
Hi Vikas,
Someone may already have done this work, but I just played with a JTextArea and a document listener just to see what that's all about.

I found it interesting to highlight a bit of code and then paste a letter to replace that highlighted area. You could combine that with ta.getText() to see what cli input was made when the last character is a cr.
Ed


The nice thing about Standards is that there are so many to choose from!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How can I make command line interface (CLI)