Event driven #
laidOut()
is called once the component is fully “laid out” (once it’s drawn after the show()
method is called).
Command design pattern #
Observer design pattern #
The old way of doing it: #