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
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.
<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?


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