Lazy Command

The LazyCommand is useful for improving startup performance by deferring heavier operations until the first time the command is executed.

The following is an example implementation.

   public class MyLazyCommand extends LazyCommand()
   {
      private JDialog dialog;

      public void build()
      {
         // construct the UI the first time we are invoked
         dialog = ...;
      }

      public void lazyExecute()
      {
         dialog.setVisible(true);
      }
   }