eclipse/jframe/synchronization/threads/java basic