applet

Applet - KeyListener not working

南楼画角 提交于 2019-12-25 06:30:57
问题 When I start up my applet, I get no response from the key listener. How do I fix this? Below is the code. import java.applet.Applet; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.util.Timer; import java.util.TimerTask; public class Main extends Applet { private static final long serialVersionUID = 1L; public String mode = ""; public Graphic gr; public void init() { this.setSize(400, 400); gr = new Graphic(); this.add(gr); gr

Applets loading very slow on Java 8u 45 with stack overflow error while it works fine with Java 7

牧云@^-^@ 提交于 2019-12-25 06:14:24
问题 I am getting a Stackoverflow error on Java Console while opening the Applets over network on Java Version 8 build 1.8.0_45-b15 . The applet gets loaded but takes around 8 minutes and the same works fine in any of the Java 7 versions over the network . Can anyone please help .. The stacktrace is as follows . java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.PolicyFile.getPermissions(Unknown Source) at sun.security.provider

Applets loading very slow on Java 8u 45 with stack overflow error while it works fine with Java 7

做~自己de王妃 提交于 2019-12-25 06:14:11
问题 I am getting a Stackoverflow error on Java Console while opening the Applets over network on Java Version 8 build 1.8.0_45-b15 . The applet gets loaded but takes around 8 minutes and the same works fine in any of the Java 7 versions over the network . Can anyone please help .. The stacktrace is as follows . java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.PolicyFile.getPermissions(Unknown Source) at sun.security.provider

How to create a JFrame within a Java applet or vice versa

☆樱花仙子☆ 提交于 2019-12-25 05:33:15
问题 I am trying to create a Java applet with JInternalFrames. For this I believe you need a JFrame in one form or another. I heard you could wrap your applet in a JFrame, is that best? If you could tell me what I should do I would appreciate it. TYIA -Roland /** * @(#)rebuiltgui.java * * rebuiltgui Applet application * * @author * @version 1.00 2013/1/21 */ import javax.swing.JInternalFrame; import javax.swing.JDesktopPane; import javax.swing.plaf.basic.BasicInternalFrameUI; import java.awt.event

How to create a JFrame within a Java applet or vice versa

﹥>﹥吖頭↗ 提交于 2019-12-25 05:33:06
问题 I am trying to create a Java applet with JInternalFrames. For this I believe you need a JFrame in one form or another. I heard you could wrap your applet in a JFrame, is that best? If you could tell me what I should do I would appreciate it. TYIA -Roland /** * @(#)rebuiltgui.java * * rebuiltgui Applet application * * @author * @version 1.00 2013/1/21 */ import javax.swing.JInternalFrame; import javax.swing.JDesktopPane; import javax.swing.plaf.basic.BasicInternalFrameUI; import java.awt.event

Java Applet can't load images from web

≯℡__Kan透↙ 提交于 2019-12-25 05:19:07
问题 I have wrote my first java applet. It basically loads some images from my Django webserver and then the user can modify them. I developed it in Eclipse, and I had no problems at all. When I tried it with a test page, on the java console come out this error: java.security.AccessControlException: access denied (java.net.SocketPermission www.hyros.net resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374) at java.security.AccessController.checkPermission

Java Applet can't load images from web

痞子三分冷 提交于 2019-12-25 05:19:03
问题 I have wrote my first java applet. It basically loads some images from my Django webserver and then the user can modify them. I developed it in Eclipse, and I had no problems at all. When I tried it with a test page, on the java console come out this error: java.security.AccessControlException: access denied (java.net.SocketPermission www.hyros.net resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374) at java.security.AccessController.checkPermission

Call a Java Applet from Flex

白昼怎懂夜的黑 提交于 2019-12-25 04:53:34
问题 I'm working on Flex application and I need to open a Java Applet from Flex (e.g. clicking a button). In particular I'd like to open imageJ, a particular imaging program that could work as application, applet or be integrated in a web page. Is there a way to call it from Flex? I've seen a couple of tutorials that explain how to call a single function in another Java file from Flex, but I'm not so sure that it is what I'm looking for. Thanks for your answers, cheers, David 回答1: I don't know if

Applet not showing image

醉酒当歌 提交于 2019-12-25 04:51:13
问题 I was following this tutorial here and I downloaded its source code and ran but the image is not showing. here is the result I was expecting that the result would be like this same as the result in the tutorial. Here is the code: StartingClass.java package kiloboltgame; import java.applet.Applet; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.net.URL; public class

Applet not showing image

爷,独闯天下 提交于 2019-12-25 04:51:11
问题 I was following this tutorial here and I downloaded its source code and ran but the image is not showing. here is the result I was expecting that the result would be like this same as the result in the tutorial. Here is the code: StartingClass.java package kiloboltgame; import java.applet.Applet; import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.net.URL; public class