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);
      }
    }
  );
}

Featured

Most   Popular
Upcoming Events

AppTrends

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.