Class GuiCreator


  • public class GuiCreator
    extends java.lang.Object
    The gui creator. Note! The Gui cannot be itself a JFrame because this might lead to deadlocks. new JFrame() should only be called from Swing thread. As "new JFrame()" is content of a belief it is executed in the agent's thread.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Component gui
      The gui.
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiCreator​(java.lang.Class<? extends java.awt.Component> clazz, java.lang.Class<?>[] argclasses, java.lang.Object[] args)
      Create a new clock.
      GuiCreator​(java.lang.reflect.Method createmethod, java.lang.Class<?>[] argclasses, java.lang.Object[] args)
      Create a new clock.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getGui()
      Get the frame.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • gui

        protected java.awt.Component gui
        The gui.
    • Constructor Detail

      • GuiCreator

        public GuiCreator​(java.lang.Class<? extends java.awt.Component> clazz,
                          java.lang.Class<?>[] argclasses,
                          java.lang.Object[] args)
        Create a new clock.
      • GuiCreator

        public GuiCreator​(java.lang.reflect.Method createmethod,
                          java.lang.Class<?>[] argclasses,
                          java.lang.Object[] args)
        Create a new clock.
    • Method Detail

      • getGui

        public java.awt.Component getGui()
        Get the frame.
        Returns:
        The frame.