Design Patterns Java™ Workbook

(Michael S) #1
Appendix B. Solutions

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();
}

Free download pdf