• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

closing other applications

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic