applet

Issues with Java 7u65

非 Y 不嫁゛ 提交于 2019-12-20 18:25:47
问题 Last night a new Java 7 update has been released: 7u65. I have a web application where a service applet is loaded, and after the update, my tests on different PCs did not show issues nor wrong behaviors. Later, I started to receive issue reports related to my product's Java service applet. All the reports came from users who updated Java JRE to 7u65 (from 7u60): The applet was not loading at all. I display a "Loading" screen when the application starts, and this was not being displayed. Also,

Is there a possibility to run applets on Android or Blackberry?

浪子不回头ぞ 提交于 2019-12-20 10:54:38
问题 This is what the Java site www.java.com says: "KVM, the virtual machine for mobile devices, is the counterpart of JVM (Java virtual machine). It is used to run applets and applications written with Java technology on mobile devices. KVM must be installed by the manufacturer. It is NOT available for download or installation by consumers". Now Android has a customized virtual machine called DVM (Dalvik Virtual Machine). Can we compare it with KVM? Wonder if we can further reprogram DVM to

How does URLConnection.setUseCaches() work in practice?

ぐ巨炮叔叔 提交于 2019-12-20 10:28:42
问题 I have an Applet which is loading images over a http connection using URLConnection. I am setting setUseCaches(true) for all connections, but still not seeing any caching behavior. My image's HTTP headers have reasonable cache settings. If you look at bug 4528599 there is this rather mysterious statement: The current version (1.3.1) of Java Plug-In only checks the browser cache for files whose names end in .jar or .class. I have been told that for Java Plug-In 1.4 the browser cache will be

java.lang.NoClassDefFoundError when trying to embed an applet

对着背影说爱祢 提交于 2019-12-20 07:38:45
问题 So I wrote my code for a Snake game for a kid I know and the darned thing won't embed itself in html. <html> <head> <title>Snake</title> </head> <body> <applet width=200 height=100 code="SnakeGame.class"> </applet> </body> </html> and I am certain that the class file is in the same directory as snake.html , but it still refuses to run. It always replies: java.lang.NoClassDefFoundError: SnakeGame (wrong name: view/SnakeGame) Does anyone know why? Thanks. EDIT: the folder view contains:

如何实现报表直接打印需求

你。 提交于 2019-12-20 07:22:19
直接打印是常见的报表打印需求,即点击打印按钮后直接把结果输出到打印机,使用户的操作更加简便。润乾报表提供了三种不同的打印方式,都可以实现直接打印功能,下面我们就来看一下每一种方式的具体实现方法。 一、 直接打印效果 1、applet 打印 Applet 打印目前只支持 IE 内核浏览器,且需要客户端至少正确安装配置了 jre 环境。 在 IE 内核浏览器进行直接打印时,会直接把报表结果输出到默认打印机。 2、Flash 打印 常用浏览器中均可进行 flash 打印, IE 内核浏览器和火狐浏览器下进行 flash 直接打印时,会弹出打印机选择页面,选择打印机后可直接输出到打印机,如下图所示: 谷歌内核浏览器下进行 flash 直接打印时,会弹出带报表结果的打印页面,如下图所示: 3、PDF 打印 IE 内核浏览器进行 PDF 直接打印时,需要安装 adobe reader 插件,而谷歌火狐浏览器则没有此要求。 IE 内核浏览器和火狐浏览下进行 PDF 直接打印时,会弹出打印机选择页面,选择打印机后可直接输出到打印机,如下图所示: 谷歌内核浏览器进行 PDF 直接打印时会弹出带报表结果的打印页面,如下图所示: 二、 标签属性实现方式 润乾报表提供了标签属性配置方式,可以在报表结果显示上方进行直接打印操作,如下图所示: 目前标签属性方式只提供了 applet 直接打印的配置:

Converted Java Game to Applet; Wont load pictures

心不动则不痛 提交于 2019-12-20 06:42:41
问题 So I made a pretty big game in Java, and I intended to put it on my site so I messed with it and turned it into an applet. It launches and runs perfectly fine, the only problem is it wont load any of the pictures. Here is the way I am doing it currently: (Keep in mind this is a JPanel extended class that I create an object of in my applet class and add to the applet) In the Screen(JPanel) class: for (int i = 0; i < tileset_ground.length; i++) { tileset_ground[i] = frame.loadImage("res/tileset

Java Applet Images will not display when run in browser

陌路散爱 提交于 2019-12-20 06:29:20
问题 I finally managed to get my java applet to run in my browser, however I now face the issue that none of my images will display. The only thing that displays is black text that is drawn in the screen in the applet. In order to get the applet to work at all, I had to export as a jar and sign it myself. Now, I'm wondering why it is that the images won't display. I checked and the jar file does include all the image files. Likewise, the applet runs perfectly well in Eclipse. What could be the

Launching an Applet fails?

女生的网名这么多〃 提交于 2019-12-20 05:48:46
问题 I am trying to launch an applet from within an applet using the code: Class applet2 = Class.forName(PostAccess); Applet appletToLoad = (Applet)applet2.newInstance(); appletToLoad.setStub(this); setLayout( new GridLayout(1,0)); add(appletToLoad); appletToLoad.init(); appletToLoad.start(); However, this throws an error: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any> at javaapplication1.MainApplet.jButton1ActionPerformed

Can't load Java applet from another directory in HTML

时光毁灭记忆、已成空白 提交于 2019-12-20 05:43:15
问题 When i try to load an applet with : <object type="application/x-java-applet" height="300" width="550"> <param name="code" value="Sokoban" /> </object> when the html file is in the same directory as the applet it loads as expected. But when the applet is in an another directory the following code won't work : <object type="application/x-java-applet" height="300" width="550"> <param name="code" value="sokoban/Sokoban" /> </object> (sokoban is the directory the applet is in, Sokoban is the

Can Flash SWF communicate with Java applet, and vice versa, in any way?

放肆的年华 提交于 2019-12-20 05:26:10
问题 I know Flash can use ExternalInterface to call Javascript functions but I don't know if it can call applet also like that. Maybe it can be done by SWF -> JS -> Applet, and back, I don't know. Since I have no idea how to do applets, I would also appreciate at least some pseudo code. Thanks. 回答1: Applets can communicate with JS, and JS can control applets. See these examples of Java/JavaScript interaction. 回答2: Yes. Sockets. Your Java applet can open a server socket, probably a HTTP socket, and