Package name.moore.kevin.ze.swing
Class zFrame
java.lang.Object
name.moore.kevin.ze.swing.zFrame
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static JFrameThe actual created swing component (identified in the XML) created by this class.private static zImagePanelSwing JPanel being used to display offscreen JME.private static org.slf4j.LoggerIn XML, set windowlistener="wlistener" to process window events in this listener. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJf()getJme()static zFramemake(int width, int height)Setup and manage the main application frame along with some required dockables.voidwindowEvent(windowEvent event)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface name.moore.kevin.ze.swing.izSwing
getZodiacApp, setVarLookup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
jf
The actual created swing component (identified in the XML) created by this class. -
jme
Swing JPanel being used to display offscreen JME. -
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
-
getJme
-
make
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
-