
413Customizing MATLAB
®
Controls
java.awt.Rectangle[x=-1,y=1,width=41,height=20] %note negative x
>> textField.setLocation(java.awt.Point(1,1))
Before: hidden left border
After: fixed left border
In addition to EditorComponent, the editor contains an Item property (and associ-
ated getItem/setItem methods) that holds the current text-eld contents:
>> jPopup.getEditor.getItem
ans =
<HTML><FONT color="red">Hello</Font></html>
The editor has a single callback property, ActionPerformedCallback, which is
red when the editing is nalized (by clicking <Enter>).
If we investigate the editor object (e.g. using uiinspect), then we will note ...