468,257 Members | 1,423 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

Default value for console input, please help !

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
1 2505
-----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.

Similar topics

6 posts views Thread by dmiller23462 | last post: by
4 posts views Thread by John Vottero | last post: by
3 posts views Thread by John A Grandy | last post: by
21 posts views Thread by planetthoughtful | last post: by
10 posts views Thread by =?Utf-8?B?SmFtZXMgV29uZw==?= | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.