i have make it myself ,though i am a begining learner.the answer is no the first,and yes the second,and yes the third.

解决方案 »

  1.   

    执行到return语句,不仅结束循环语句,还跳出这个函数块,可以用break中断循环语句,或者用continue中断这次循环,继续下面的循环语句,一般的入门书籍都有介绍:)
      

  2.   

    return后,JAVA会有机制继续监听你的button的事件,你只管做你自己的事就行了。
      

  3.   

    z7910(葡萄)说的有道理,
    例:
    在actionPerformed函数中,
    {
      if(e.source()==button1)
      {
        ...
        return;
        ...
      }
      if(e.source()==list1)
      {
       ...
      }
      ...
    }
    当你单击button1时,actionPerformed函数被执行,且直接找到if(e.source()==button1)这个条件语句块,当程序执行到return时,事件中断,return下面的语句没有机会被执行,如果你不停地点击button1 n次,actionPerformed函数也会被执行n次,return语句对触发事件没有任何影响,当然前提是你的按钮对ActionEvent接口注册监听。