Never use gotFocus
or lostFocus
.
Use the clicked
method of LineViewButton
and HeaderViewButton
instead.
See my pastebin for an example.
That said, you are on the wrong track, the button group would be better placed on the action pane directly above the lines.