As far as killing processes you didn't launch: the solution would be platform-specific. Calling "kill" via Runtime.exec() would work on UNIX. On Windows, who knows?
You can call dispose() on a JFrame (or JDialog) to actually destroy it.
These aren't advanced questions; they would be a little more apropriate in the "Intermediate" forum. I'll move this
thread there.