Small experiments with Java swing