Java testing buttons