Dear Steve Barrett

Thanks for the solution. but i wanted something like this. In a panel i have
two textarea fields and four textfields
when i traverse the fields using the tab key, I want the focus to come out
of the textarea when i press tab key. But what happens is 
pressing the tab key insdie the textarea is it moves by a tab space. I want
override this feature. Like whenever i press the tab key it should move to
the next focussable component. Any idea or workaround would be of much help
to me.

wkr
Srinivasan




-----Original Message-----
From: Steve Barrett [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2001 09:58
To: Samivelu, Srinivasan
Subject: Re: JTextArea


one solution would be
  jta = new JTextArea () {
        public boolean isFocusTraversable () { return false; }};

--- "Samivelu, Srinivasan" <[EMAIL PROTECTED]> wrote:
> Dear All
>       I am using JTextArea in my program. The textarea is non editable.
> And  when I press the tab key i want the focus to be moved to the
> next
> focussable component. 
>       Any workaround or code snippet to set the focus to the next
> focussable component on clicking the tab key.
> 
> Thanks in advance
> Srinivasan
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to