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

java.exe is still running

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i start an application by java Test In Test.java main() i invoke the constructor which in turn displays a splashscreen and a dialog. if the user hits Quit on the dialogue, i dispose the splash screen and return from the constructor which also causes main to return.
But in the task manager java.exe is still running. Also the console window thats started after exeecuting java Test is still there.
Can you please tell me whats going wrong.
Thanks,
Vivek
 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you display window using AWT (or Swing), one or more (shared) threads are started to dispatch events, etc. These don't go away when you dispose() of the window(s). That's why Swing applications usually stop by exiting the virtual machine using System.exit().
 
vicky bawge
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi John,
Yeah that works.
Thanks a lot,
Vivek
 
reply
    Bookmark Topic Watch Topic
  • New Topic