By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Interactive console using Swing

P: n/a
Hi,

I am trying to implement an application administrative tool with interactive
console
(i.e. showing some info to the user and taking user input) using Swing and
JDK 1.4.

Up until now I have done info display part after selecting items from the
menu
(using JTextArea and append() ),
but now I realized that user input has to be provided and processed.

I don't see that I can associate an i/o stream with JTextArea. Is there a
way to do that ?

Or is there other Swing widget better suitable for that ?

Please advise.

Thank you in advance,
Oleg.


Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
try using something like this:

JOptionPane.showInputDialog(null, "Enter your response",
"titlebarTextString" );
"Oleg Konovalov" <ok********@sarnoff.com> wrote in message
news:c8*********@news.sarnoff.com...
Hi,

I am trying to implement an application administrative tool with interactive console
(i.e. showing some info to the user and taking user input) using Swing and
JDK 1.4.

Up until now I have done info display part after selecting items from the
menu
(using JTextArea and append() ),
but now I realized that user input has to be provided and processed.

I don't see that I can associate an i/o stream with JTextArea. Is there a
way to do that ?

Or is there other Swing widget better suitable for that ?

Please advise.

Thank you in advance,
Oleg.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 5/22/2004
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.