Link to home
Start Free TrialLog in
Avatar of linchong
linchong

asked on

disable tab key and auto edit other textfields

Hi

1. How to disable the tab key in a JtextArea.

2. I have multiple JTextField say tx1,tx2,tx3,tx4.
Once I have enter the tx1 filed, or once my cursor goes to tx2 box, I wud like to auto complete the rest of tx2,tx3,tx4.

Assume that I already have an array of strings[][] to fill up the rest.
Avatar of durgaprasad_j
durgaprasad_j

hi,
did you try this setFocusTraversalKeysEnabled function of JTextArea.

DP
ASKER CERTIFIED SOLUTION
Avatar of durgaprasad_j
durgaprasad_j

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial