By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,737 Members | 1,971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,737 IT Pros & Developers. It's quick & easy.

Default value for console input, please help !

P: n/a
Hi,
I need to do read a value from user but also give him/her a default value
which they can edit ( all in text mode, no windows) how can I do that?
For example

Enter number 1 - 1000 : 55_

55 appears
user can delete part by backspace or type extra digits
or just press enter to submit.

Please help!
very urgent !
Thank you so much !

Den
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis wrote:
Hi,
I need to do read a value from user but also give him/her a default
value which they can edit ( all in text mode, no windows) how can I
do that? For example

Enter number 1 - 1000 : 55_

55 appears
user can delete part by backspace or type extra digits
or just press enter to submit.

Please help!
very urgent !
Thank you so much !

Den


Hi,
Absolutely impossible with Java. You have to use native code (see
JNI).

Chris

- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/zpCtwxczzJRavJYRAm7NAKCkoDe9kR0/YqtWyNJXwLrJEno62gCfW5ih
j2FNHkW+YHO6t2ttv4/TeQg=
=z6KE
-----END PGP SIGNATURE-----
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.