Class AsyncGUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, AsyncListener

public class AsyncGUI extends JPanel implements AsyncListener
A demonstration of a GUI handling an async bean. Note that this class uses ListenerSpinOver to automatically spin-over a listener to async events.
See Also:
  • Constructor Details

    • AsyncGUI

      public AsyncGUI(AsyncBean anAsyncBean)
      Constructor.
  • Method Details

    • finished

      public void finished(int number, long duration)
      Description copied from interface: AsyncListener
      Finished.
      Specified by:
      finished in interface AsyncListener
      Parameters:
      number - the number
      duration - the duration
      See Also:
    • main

      public static void main(String[] args)
      Entrance to this demo.