GUIObject


represents a live interface instance with root widget root, wrapping the active widgets and environment.

DetailsDetails

  • To use , you first need to load GUIKit using Needs["GUIKit`"].
  • A represents a live interface instance wrapping both the created Java objects as well as the runtime environment associated with the scripting code and Mathematica contexts.
  • objects are comprised mostly of private definitions, but the first argument is a JavaObject instance of the top-level widget in the interface and supports direct J/Link style calls.
  • A is created whenever GUILoad or GUIRun is called.
  • A is released interactively when an interface is closed or programmatically using CloseGUIObject or ReleaseGUIObject.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

Create a instance:

In[2]:=
Click for copyable input
Out[2]=

The first argument is a normal JavaObject instance:

In[3]:=
Click for copyable input
Out[3]=

Most of the parameters are private environment states that cannot be properly built up manually:

In[4]:=
Click for copyable input
Out[4]//InputForm=

Many GUIKit functions work with a instance:

In[5]:=
Click for copyable input
Out[5]=

Release the instance:

In[6]:=
Click for copyable input
New to Mathematica? Find your learning path »
Have a question? Ask support »