Java panel program done.