OK, sorry... I may have been unclear on this. I am not doing a windowed dialog in Java. I didn't show the showDialog method since it is irrelevant for the problem; I thought. The showDialog only shows some lines of text output on the standard out stream!
Code:
public static void showDialog()
{
System.out.println("Choose one of the following options...\n");
System.out.println("1. Make new user");
...
System.out.println("7. Identify user");
System.out.println("9. Exit");
System.out.println();
System.out.print("Enter option number: ");
}
}
I will tell you the full story! The thing is that I am currently working on a small project where I am trying to identify users from the way they press the keyboard. For this I am using a program called
xlisten, and which runs on Linux. I pipe the output from
xlisten into my Java program so I can analyze the
xlisten output! Part of the Java program require the user to enter som data from which typing patterns are retrieved, and this is why I use a console dialog etc.
By the way... The reason for my C# question was that I am primerily a Windows user, so I am mostly developing on this platform, and some C# help might have helped me!
Thanks anyway.
Jacob.