• Post Reply Bookmark Topic Watch Topic
  • New Topic

closing other applications  RSS feed

 
Amit Bathla
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
we wanted to find out a way to close application other than java applications say media player etc.

we also have another problem ,we normally close frames in java by setting them invisible.but that might be a crude method.is there a way to actually close a frame without exiting the whole application.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!