java - TAB key functionality implementation in JTextArea -


i using rxtx library serial communication , gui have used jtextarea display input , output.

the implementation similar terminal tool, trying implement tab key functionality same in linux console or in windows command prompt (the respective suggestions shown).

for e.g

if type cd command , press tab key suggestions shown or particular suggestion filled automatically in command line.

is there library available in java implement functionality?

please help.

how add shortcut keys jtextfield?

the link shows how add own keybinding. can same tab replacing default action own one.

in custom action can fill suggestions list , show them in jpopupmenu or in jcombobox need.

you should read http://www.coderanch.com/t/482913/gui/java/tab-key-binding-jtextfield that's attempt replace behaviour. tab , shift+tab used focus meet problems described.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -