Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How would i get user input a an application?

  Asked By: Lloyd    Date: Feb 12    Category: Java    Views: 632
  

How would i get user input a an application?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abana Cohen     Answered On: Feb 12

That all depends on what kind of user  input you want.

If you are after text commands you could look at something like

String inPut;
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

inPut = br.readLine();


If you are making a GUI then you have to look at Swing and AWT for
graphical input, then look at EventHandlers for swing and awt.

 
Didn't find what you were looking for? Find more on How would i get user input a an application? Or get search suggestion and latest updates.




Tagged: