• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

A method to close application window

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Every One!!!

I am developing Windows XP's Task Manager using netbeans IDE.
In that i got a method to kill(close) processes.

i used "taskill/pid/process_name" command to kill process.
and here goes those statements...

Runtime rt=new Runtime.getRuntime();
Process pr=rt.exec(taskill/pid/process_name);

but didn't get a method to close application window???
If anybody knows please post here.


Thanking You!!!
 
Ranch Hand
Posts: 129
Netbeans IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which application window are you talking about?

The window of the task manager you have built or the window of the process you just killed.
 
sandhya kale
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No... am not talking about Task manager's window,am talking about application windows that are open on your system.

Like in windows we open task manager by CTRL+ALT+DEL.
in that a very first option is Application tab(A list of Applications and System's Application windows).

So i want to close any application that a user selects.

I didn't get any way to do so using netbeans.
 
Nitin Surana
Ranch Hand
Posts: 129
Netbeans IDE Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then ending the process corresponding to that application will do so.
One more thing, I myself about an year ago have developed a software like this but I used this



and in my case I had no such problem of non-closing application window. May be you can try the above code.
 
sandhya kale
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


yes i tried this same "taskkill/f/im" +name....today,but it didn't work...
can you post here your email-id so that i can mail my code to you...
you will be able to find where i am making mistake...Thank you...
 
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wrong forum
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic