i'm aware JOptionPane isnt the most suitable for getting user's input
anyway, i came to this:
from API, i used:
public static String showInputDialog(Object message)
throws HeadlessExceptionShows a question-message dialog requesting input from the user. The dialog uses the default frame, which usually means it is centered on the screen.
@param is an Object and i pass a
String, which is an obj, yes, but...
Parameters:
message - the Object to display
dont quite well get it ...
why is that cast needed for?
[ June 08, 2005: Message edited by: miguel lisboa ]