GUIKIT PACKAGE TUTORIAL

Access to the Java Object Layer

The GUIKit framework provides Wolfram Language functions, such as PropertyValue[{"widgetName","propertyName"}], for accessing state or calling methods on instances using InvokeMethod[{"widgetName","methodName"},arguments]. However, this does not prevent you from using the standard J/Link techniques for manipulating any underlying that makes up the runtime interface.

In[55]:=
Click for copyable input
In[56]:=
Click for copyable input
Out[56]=

Here is what this interface will display as on a typical platform.

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

The first argument of a GUIObject is the root window Java class, in this case a instance. You can make method calls on this component while the interface is running.

In[4]:=
Click for copyable input
Out[4]=
In[58]:=
Click for copyable input

Here is the user interface now. (The interface has been resized to display the entire title.)

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

WidgetReference[] looks up specially registered instances; such utility GUIObject functions also return instances, and so any object in the interface can be accessed directly with J/Link method calls.

In[60]:=
Click for copyable input
Out[60]=
In[61]:=
Click for copyable input

Here is the user interface now.

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