TP2 for Graphical Interfaces course in Java