|
Answer» Hey, I'm trying to create an interactive menu in JAVA and I can't FIGURE out if it's even possible.
Let me first explain what I mean by interactive menu.
I mean that the system will display a list of choices like:
[|] Choice #1 [ ] Choice #2 [ ] Choice #3
Then, the user can use the arrow keys to move the "selection" among the options. So pressing the down arrow key in this CASE would return:
[ ] Choice #1 [|] Choice #2 [ ] Choice #3
Or SOMETHING similar.
Then, when the user has MOVED to the choice they want, they would press enter, and the program would return something associated with the option (say, "1", "2", or "3").
The problem I'm having is that I don't think that I can do this inside the System console/prompt. I'm using Windows and I can create menus that request the user to input what option they want, but not one that's a bit more idiot proof.
Any ideas?
-rock
p.s. Just to be clear, I'm not using the graphical options with JAVA, I don't know how, and I don't plan on learning very soon. I'm still a beginner at JAVA.Wouldnt it be easier if they entered the number of the choice then have it display back what ever it is?
|