how do i make a program wait for user input...i.e ..it executes only when user gives an input????is there anything like a "scanf" command as in 'C'..pls help...
user input
Started by Ananta2010, Jun 16 2010 04:25 AM
4 replies to this topic
#1
Posted 16 June 2010 - 04:25 AM
|
|
|
#2
Posted 16 June 2010 - 04:28 AM
There are several ways, including system.in and Scanner
#3
Posted 16 June 2010 - 04:29 AM
You could use a dialog window.
Take a look here:
How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
Take a look here:
How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
#4
Posted 16 June 2010 - 06:13 AM
could you please write an example of a code using scanner...
#5
Posted 16 June 2010 - 07:03 AM
Do a search on this site. There are lots of examples.


Sign In
Create Account

Back to top









