applet

Any workaround to getting Copy/Paste working in JDK 7 AWT Applet on Mac?

流过昼夜 提交于 2019-12-19 10:15:05
问题 Since Apple forced the update to JDK 7 on Mac, old AWT applets no longer support copy/paste. For example, if you visit: Simple AWT Textfield Example you cannot copy and paste into the applet text field on that page. I've confirmed that you can still copy/paste in AWT on Windows with JDK 7. Anybody know a workaround? 回答1: Oracle released Java 6 Update 24 in February 2011 to remedy 21 vulnerabilities: Announcement As part of this security release, the ability to copy & paste from a computer's

Guide on creating a Java Applet , Printing without prompt

好久不见. 提交于 2019-12-19 09:28:26
问题 Well I have created a web-based POS to take order. My question is how do I create a Java-Applet; Shows the HTML page & a Print button Print Order without prompting(no dialogue box) Additional Information : It works like this. The waiter will key the orders from the computer(POS) , when they hit print, it will detect the I.P address of the printer in the kitchen,then print out the orders immediately without prompt. I am actually looking for reference/guide which can help me start on. Any

NoClassDefFoundError with jdbc applet

不羁岁月 提交于 2019-12-19 09:26:41
问题 I created an applet using Eclipse: package gui; public class MyApplet extends JApplet { This applet needs two external jar's: proj.jar and firebirdsql-full.jar (jdbc) Therefore I created the HTML like this, in the same folder as the jars: <APPLET CODE="gui.MyApplet.class" width="650" height="650" ARCHIVE="proj.jar,myApplet.jar,firebirdsql-full.jar"> <a href="http://java.com/en/download/index.jsp">Java</a> </APPLET> I also tried to change the jar order in the ARCHIVE attribute. However I keep

usability of Java applets in the web

自闭症网瘾萝莉.ら 提交于 2019-12-19 09:23:16
问题 For our eLearning project in our university, we are using Java applets to show some interactive stuff (like some interactive function plotting or some simple question/answer system or other interactive elements and any combination on those) inside of Ilias learning units. We decided for Java because we wanted an open solution (and HTML5 was not really available at that time and Flash was and is not really an option). Now, a few years later, I really got the feeling that Java is not really

Applet class loader cannot find a class in the applet's jar

牧云@^-^@ 提交于 2019-12-19 08:30:26
问题 I started to ask this question and then figured out the answer before submitting it. I've decided to post the question anyway so that other people who run into the same problem will be able to learn from my mistakes. I'm having a problem with an applet (a JApplet actually) unable to instantiate another class which is included in the same jar as the applet. The exception I'm seeing on the Java console is: Exception in thread "thread applet-com.company.program.cm.hmi.MediatorApplet-1" java.lang

Differents between SDA and DDA in JavaCard?

瘦欲@ 提交于 2019-12-19 04:59:47
问题 I have an applet (you can take a look at it there JavaCard applet is not working with RSA encryption). Applet generates RSA public and private keys in constructor and with APDU command encrypt some byte array. Applet generates public and private keys with KeyBuilder.LENGTH_RSA_2048 in docs provided with cards sad that JavaCard supports 2048 bits key length only in DDA. So question is what is DDA and SDA. Differences between them? And main question is: how to install (or run?) applet in this

Differents between SDA and DDA in JavaCard?

非 Y 不嫁゛ 提交于 2019-12-19 04:59:11
问题 I have an applet (you can take a look at it there JavaCard applet is not working with RSA encryption). Applet generates RSA public and private keys in constructor and with APDU command encrypt some byte array. Applet generates public and private keys with KeyBuilder.LENGTH_RSA_2048 in docs provided with cards sad that JavaCard supports 2048 bits key length only in DDA. So question is what is DDA and SDA. Differences between them? And main question is: how to install (or run?) applet in this

applet communication using post method

送分小仙女□ 提交于 2019-12-19 04:47:08
问题 I have an applet that is communicating with a servlet. I am communicating with the servlet using POST method. My problem is how do I send parameters to the servlet. Using GET method, this is fairly simple ( I just append the parameters to the URL after a ?). But using POST method how do I send the parameters, so that in the servlet side, I can use the statement : message = req.getParameter("msg"); In the applet side, I establish POST method connection as follows : URL url = new URL

applet. java.lang.reflect.InvocationTargetException

假如想象 提交于 2019-12-19 04:07:10
问题 I have applet which use jna Pointer class. The applet code is: import com.sun.jna.*; public class Applet1 extends Applet{ public void test() { try { Pointer p = new Memory(73); } catch (Exception e) { e.printStackTrace(); } } } In html code I declared applet this way: <applet codebase=/pki/ code=Applet1.class archive=/pki/jna-3.2.3.jar id=Applet1 width=100 height=100 > </applet> When i call document.getElementById("Applet1").test() by javascript the java.lang.reflect.InvocationTargetException

How to embed jar in HTML

☆樱花仙子☆ 提交于 2019-12-19 03:25:34
问题 There are a lot of resources on this already but I just can't seem to get it to work. What am I doing wrong? The jar file is at: http://www.alexandertechniqueatlantic.ca/multimedia/AT-web-presentation-imp.jar And the code I am using to embed is: <APPLET ARCHIVE="multimedia/AT-web-presentation-imp.jar" CODE="ImpViewer.class" WIDTH=100% HEIGHT=100%> </APPLET> The test page I am using is at: http://www.alexandertechniqueatlantic.ca/test.php When I download the jar it runs fine, so I am certain