How to add a focus listener to Panel

Hello,

I’d like to add a focus listener to a Panel,and I try to call addFocusListener(), but there is no addFocusListener() provided in Panel.I am wondering if there is another way to add listener for requesting a focus with the Panel.

Best regards!

Shunyi

Hi,

Panels don’t fire focus events. You should put focus listeners on the components inside the panel, I think.

-Olli