Class zFrame

java.lang.Object
name.moore.kevin.ze.swing.zFrame
All Implemented Interfaces:
izSwing

public class zFrame extends Object implements izSwing
The top level windowing interface, built using the cookxml library/swing. This provides the main windowing ability, full screen capability. The frame contains a menu and two stacked layers - an imagepanel for JME and a UI pane (built from a zUIPanel)

With the use of statics I wouldn't try using more than one copy of this!!

Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • jf

      private static volatile JFrame jf
      The actual created swing component (identified in the XML) created by this class.
    • jme

      private static volatile zImagePanel jme
      Swing JPanel being used to display offscreen JME.
    • wlistener

      public WindowListener wlistener
      In XML, set windowlistener="wlistener" to process window events in this listener. Needs to be public so cookswing can get to it.
  • Constructor Details

    • zFrame

      private zFrame()
  • Method Details

    • getJf

      public JFrame getJf()
    • getJme

      public zImagePanel getJme()
    • make

      public static zFrame make(int width, int height)
      Setup and manage the main application frame along with some required dockables.

      Returns a valid zFrame object, but since the actual internal JFrame is constructed in a separate (invokeLater) swing thread the JFrame will initially be null. Once the swing thread has completed we can utilise the swing object.

      Parameters:
      width -
      height -
      Returns:
    • windowEvent

      public void windowEvent(windowEvent event)