Making the Button Focusable
To make the button focusable we'll just override isFocusable in CustomButtonField to return true:
public boolean isFocusable() { return true;
Now, you'll be able to move the focus down to the buttons, but the visual representation shown in Figure 5-10 is not what we want.
- Figure 5-10. Custom button fields with the default focus drawing behavior
Post a comment