This discussion is archived
2 Replies Latest reply: Mar 26, 2013 11:21 PM by 799151 RSS

Use system console with editable default value

799151 Explorer
Currently Being Moderated
Hi,
Is it possible in java (or maybe groovy) to ask user for input in console with default value passed? User should be able to edit the default value or commit it by pressing enter key.
Sample:
<CONSOLE> Enter type: TYPE1<cursor>

if user hits enter key the TYPE1 is passed to application, when user hits backspace the TYPE1 is edited. Any ideas?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points