Java painting app, PPVIS lab 1 (4th semester)