This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove dispatcher?

 
wei ning
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Below is part of my coding, i do to remove the dispatcher by using the code during the "Hello" method. But now, i would like to remove the dispatcher during the "anotherMethod" method after the "anotherMethod" have been executed. Can it be done? How can i make it? Can anyone help me? Thanks.




Thanks for your help!
Ning
 
Torgil Zethson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it can be done. Just store a reference to the dispatcher as an instance member of your class:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic