Undocumented Secrets of MATLAB
®
-Java Programming178
two arguments are exactly the two arguments returned from the javacomponent function (see
Chapter 3). Use of the rst return argument enables the user to specify the tree Units (e.g.,
‘Normalized’), Position, Visible (true/false), and a few other properties (see below). uitree’s
help section implies that these properties may be passed directly as P–V pairs, just like Root or
ExpandFcn, but this is, in fact, not so. A few callbacks may also be set, as described below.
The uitree Units and Visibility properties may also be set via the second (container) output
argument. The container handle also enables changing other standard MATLAB handle prop-
erties, such as Position, UserData, Tag, ...