我有一个问题。如何在不嵌入我的网页的情况下直接运行我的java-applet?我知道appletViewr可以在没有浏览器的情况下执行applet,但我需要在没有html页面的情况下获取javaapplet。 最佳答案 在您的代码中使用以下代码,其中AppletClass是您的Applet类。AppletClassappletClass=newAppletClass();JFrameframe=newJFrame();frame.setLayout(newGridLayout(1,1));frame.add(appletClass)