如何在事件的applet中调用paint()

时间:2012-06-15 04:19:10

标签: java applet

我使用applet进行应用程序。因为当conditin满足时,它必须再次调用paint方法。重绘方法有可能吗?或任何其他方法.. ?? 我试过这样的事,

if(j==0){
     ready_status=true;
     repaint();  // i want paint has to call again here      
  }

1 个答案:

答案 0 :(得分:-1)

试试这个

paint(getGraphics());