focus tranfer between panels

I have a panel which has two panels classes, panel1 and panel2.

panel1 has few textareas/combos and panel2 also has some textareas/combs.

user tabs between the fields in panel1. but when user tabs on the last field of panel1, i want the focus tranfer to panel2's first field.

how do i do that, please help

thank you

[347 byte] By [javalover2002a] at [2007-11-27 11:59:05]
# 1

Read here http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html#customFocusTraversal

ICE

icewalker2ga at 2007-7-29 19:23:36 > top of Java-index,Desktop,Core GUI APIs...
# 2

> but when user tabs on the last field of panel1, i want the focus tranfer to panel2's first field

You don't do anything special. Thats the default behaviour.

If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",

see http://homepage1.nifty.com/algafield/sscce.html,

that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.

Don't forget to use the "Code Formatting Tags",

see http://forum.java.sun.com/help.jspa?sec=formatting,

so the posted code retains its original formatting.

camickra at 2007-7-29 19:23:36 > top of Java-index,Desktop,Core GUI APIs...