Code after a return statement. Something like <tt>SwingUtilities.invokeLater</tt>, just non-graphical
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tobias_Walter
Posted On:   Tuesday, July 23, 2002 02:26 AM

I want to call a method in a Listener right after the return command. Something like
SwingUtilities.invokeLater , just for non-graphical code:

			
private ResultListener ruleListener = new ResultAdapter()
{
public void resultAccepted(final ResultEvent e)
{
// some code
blabla;

return;

// some code _after_ return
blablabla;
}
}

Re: Code after a return statement. Something like <tt>SwingUtilities.invokeLater</tt>, just non-graphical

Posted By:   Ivo_Limmen  
Posted On:   Tuesday, July 23, 2002 02:38 AM

The compiler would never accept it. Code after a return statement is never executed.
About | Sitemap | Contact