先简单写一下:
JEditorPane t;
URL u = getClass().getResource("log.html");
try
{
      t = new JEditorPane(u);
}
catch(Exception e)
{
}就是这样,t中会将log.html中的内容显示出来。现在有这样的问题:
log.html是在不断更新的,我希望当我按Button(已经写好和注册监听器)的时候。t的内容能根据log.html更新。
我试了.repaint()方法,不灵……
请教各位大侠。