Sign in to follow this  

[java] GUIs and Input streams

This topic is 4596 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a Input Stream associated with a text area. If running at the command line the standard input is in the one from System.in (IIRC). But if I were to make a text area for a gui, what would the input stream be for that? Its seems like it would be nothing but a fancy key listenner impersonating a console. I'm not sure. Can someone point me in the right direction? L-

Share this post


Link to post
Share on other sites
if you mean for arguments, i'd probably turn args[0] into a static String, and append the string to your textarea.

for file i/o, use buffers and convert them into strings by using the StringBuffer.toString() method.

gui's aren't too different from consoles except for the fact that they have graphics and accept different forms of data, i.e. strings, characters, etc.

Share this post


Link to post
Share on other sites

This topic is 4596 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this