Example Model-Context-Interaction UI system in Java