B
B Young
Open most any native Windows app and deactivate the window or swap
between controls inside the app and you'll immediately notice that
when a component like a tree or table loses focus, the renderers
change from typically a dark blue background to a light grey
background, emphasizing the loss of focus. This has several usability
advantages.
JTable, JTree, etc. don't have this behavior by default. Their
renderers do have a boolean hasFocus parameter you can use to change
the background color yourself, but this falls apart in a multiple
selection environment since the hasFocus parameter is per renderer,
not per the whole tree or table.
I'm either missing something pretty obvious, or this is just going to
be a total focus subsystem nightmare to implement completely from
scratch.
Thanks
between controls inside the app and you'll immediately notice that
when a component like a tree or table loses focus, the renderers
change from typically a dark blue background to a light grey
background, emphasizing the loss of focus. This has several usability
advantages.
JTable, JTree, etc. don't have this behavior by default. Their
renderers do have a boolean hasFocus parameter you can use to change
the background color yourself, but this falls apart in a multiple
selection environment since the hasFocus parameter is per renderer,
not per the whole tree or table.
I'm either missing something pretty obvious, or this is just going to
be a total focus subsystem nightmare to implement completely from
scratch.
Thanks