Applet的犯规加载其源$ C ​​$ C时,页面刷新 [英] Applet doesnt reload its source code when page refreshes

查看:180
本文介绍了Applet的犯规加载其源$ C ​​$ C时,页面刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试一个Java小程序,当我改变code,保存它(我使用NetBeans 7.0.1,并具有自动编译上保存选项勾选上),并刷新页面,小程序没有按' T上读它的新的code,但加载了旧code从缓存中(或从徘徊无论)。
我曾尝试Shift + F5和Ctrl + F5没有结果。任何更好的主意,然后关闭并打开整个浏览器? (问题Chrome和Firefox保持)

I test a java applet and when I change the code, save it (I use netbeans 7.0.1 and have the "auto-compile on save" option checked on) and refresh the page, the applet doesn't read its new code, but still loads the old code from cache (or from whereever). I have tried Shift+F5 and Ctrl+F5 with no results. Any better idea then close and open whole browser? (problem stays in chrome and firefox)

HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title>Applet 1</title>
  </head>
  <body>
    <applet code="test/EasyApplet.class" width=400 height=300>
    </applet>
    <br>
    <applet code="test/MyApplet.class" width=400 height=300>
    </applet>
  </body>
</html>

小程序:

package test;

import java.awt.*;
import java.applet.Applet;

public class EasyApplet extends Applet {

    public void init() {
        add(new Label("and this is even more strange text 13"));
    }

}

没有缓存清理帮助,但刷新后大约一分钟后,新的小程序重新加载。

No cache cleaning helps, but the new applet reloads after refreshing about a minute later.

推荐答案

大声笑,现在我看到所有的问题是,我的老慢的计算机需要在30秒内编译源$ C ​​$ C。:D对不起,打扰

LOL, now i see all the problem was that my old slow computer takes over 30 seconds to compile the source code :D sorry for bothering.

这篇关于Applet的犯规加载其源$ C ​​$ C时,页面刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆