Author |
Message |
24/02/2009 13:44:06
|
krinninger
Power User
Joined: 17/11/2008 21:19:41
Messages: 567
Offline
|
if a not enabled field has the focus, pressing tab doesn't make the focus to switch to next component.
in our case, a button which has the focus gets not enabled and afterwards hitting tab won't leave the field.
|
|
|
24/02/2009 18:58:34
|
krinninger
Power User
Joined: 17/11/2008 21:19:41
Messages: 567
Offline
|
we have another phenomenon in some fixgrids which have the focus, if you press tab again focus seems to disapear somewhere to space. Hitting tab long enough leads to the desired result.
i looked into the demo application and found an list which shows the described behaviour.
Its the "Tree with Checkbox" fixgrid. You can set the focus on the grid and hit tab. i think after round about twelve times the focus control is on the first control of list.
i thought it would be a workaround to set the fixgrid attribute focusable to false, but focus ends up in list again.
this is an urgent problem, because the application should mainly be operated by keyboard.
|
|
|
01/03/2009 18:41:03
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
First problem is solved - also disabled components now are reacting on tab/shift-tab. Background: the normal focus traversal mechanism is inactive for disabled components in Swing, so we had to push a bit...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
02/03/2009 07:14:32
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Also second problem is solved.
Why so many tabs without visible reaction? The grid cells that are not populated with data are rendered into an invisible area, E.g. if grid has 10 rows but only 5 rows of data are available. The focus manager already checked this, but did not check if invisible controls contained sub-components. This is e.g. the case in the example you mentioned: the tree node is a container containingh the check box.
Corrected with updat that will be published (most likely) today.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
03/03/2009 16:42:15
|
krinninger
Power User
Joined: 17/11/2008 21:19:41
Messages: 567
Offline
|
great this works!
but another point is, that the attribute focusable=false in gridcols seems not to work.
Focus travels through headerline of the fixgrid before it comes into the first entryfield.
|
|
|
|