Java Reference
In-Depth Information
Figure B.12. The
PlaceATub
class handles component building, and
the
PlaceATubMediator
class handles events.
The constructor for
PlaceATubMediator
accepts a
PlaceATub
object to which it passes
back information:
public void focusGained(FocusEvent e)
{
gui.textField().selectAll();
}