5. Overriding DefaultBinder's applyTo() method to ensure Swing-friendliness.

Listing 5. Overriding DefaultBinder's applyTo() method to ensure Swing-friendliness.


public void applyTo(final Object target)
{
  SwingUtilities.invokeLater
  (
    new Runnable()
    {
      public void run()
      {
        SwingBinder.super.applyTo(target);
      }
    }
  );
}