在action方法里加上 repaint();试试

解决方案 »

  1.   

    1:首先action方法的cs没有值,要先cs=Double.valueOf(change_hire.getText()).doubleValue();
    2:不能在inputsal 里用Double.valueOf(change_hire.getText()).doubleValue();不能访问——你的程序在这里就先抛出异常,所以根本就没有去执行
         if (cs<min_hire)
            
              throw(new  IllegalSalaryException());

             if (cs>max_hire)
       
                throw(new IllegalSalary());
    当然抛不出异常那
      

  2.   

    你的意思就是说,把
    cs=Double.valueOf(change_hire.getText()).doubleValue();
    加到public boolean   action(Event evt,Object o)
    里面就可以了吗/