This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

closing other applications  RSS feed

Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 there a way to actually close a frame without exiting the whole application.
author and iconoclast
Posts: 24220
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!