471,337 Members | 1,061 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Interactive console using Swing

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
1 3215
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.

Similar topics

1 post views Thread by Paul Miller | last post: by
11 posts views Thread by rmm | last post: by
5 posts views Thread by Stephan Steiner | last post: by
6 posts views Thread by Microsoft | last post: by
2 posts views Thread by Adam Blinkinsop | last post: by
8 posts views Thread by james.kirin39 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.