OBSOLETE GUIKIT PACKAGE TUTORIAL
The functionality provided by GUIKit has been superseded by the interface construction
functions native to the built-in Wolfram Language.
Resolving Arbitrary Objects
Even though the GUIKit widget expression was designed with user interface issues in mind, you can construct object trees unrelated to user interface widgets and still take advantage of scripting with Wolfram Language code and setting and getting state through the use of properties.
GUIResolve allows you to resolve definitions into their runtime Java objects, but not expose a GUIObject runtime system or hold on to internal context state. This is useful if the object definition simply resolves to a set of Java objects, which you can then use in other ways through standard J/Link calls.
Notice in this example, a simple Java collections object is the root object in the expression though Wolfram Language script code is involved in populating the container with data.
Once a is resolved by the definition, you can continue to use J/Link calls on the object instance.