Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kuhaylah Malik   on Mar 06 In Java Category.

  
Question Answered By: Scott Simmons   on Mar 06

Since there is certainly more than one way for your program  to exit, maybe you
should separate the logic of you ExitAction class  to another method and/or
class. Then your ExitAction consists merely of a method call. The
windowlistener can then call that same method in response to a window closing
event. I am unsure how one would fire an event themselves so that ExitAction
could catch it. Perhaps someone else knows how to do this?

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Basic Swing question Or get search suggestion and latest updates.


Tagged: