infoScroll.setPreferredWidth ( 150 );
panel.add ( infoScroll );
// Form #1 focus tracker
// It tracks only focus loss/gain by form overall and doesn't inform about focus changes within the form
focusTracker1 = new DefaultFocusTracker ( true )
{
@Override
public void focusChanged ( final boolean focused )
{
updateInfo ( focused, info, "form1" );
}
};
FocusManager.addFocusTracker ( form1, focusTracker1 );
// Form #2 focus tracker
// It tracks only focus loss/gain by form overall and doesn't inform about focus changes within the form
focusTracker2 = new DefaultFocusTracker ( true )
{
@Override
public void focusChanged ( final boolean focused )
{
updateInfo ( focused, info, "form2" );