testing Java GUI using JFrame