• Post Reply Bookmark Topic Watch Topic
  • New Topic

The system does not exit on closing the JFrame[very urgent]  RSS feed

 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
25)The system does not exit on closing the JFrame.The window closing method is written correctly.When I placed a button "exit" & used "System.exit(0)" in its actionPerformed,the system exits.What may be the problem?Please reply me, its urgent.
 
MSD
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can do this easily by using a method in JFrame. Let's say you have 'f' is object of JFrame :-

Hope this helps,
Mohammed.
 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you mohammed,I haven't tried it but anyhow thank you for your good response.Hope to maintain good relationship always.
Netharam
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!