applet

Applet copy/paste not working after upgrading JRE 1.7

孤人 提交于 2020-01-05 12:10:42
问题 I have applet which loads form. The form has text, textarea, dropdown, checkbox controls. After upgrading to JRE 1.7 Im not able to right click inside my text fields to copy/paste any content. My JAR file is dually signed and security permissions set. I have also tried the workaround by changing settings in .java.policy file : // "standard" properies that can be read by anyone permission java.awt.AWTPermission "accessClipboard"; Interestingly enough I can do copy/paste by right click inside

How can I open a Java console output window for Applet debugging in a browser (windows)?

依然范特西╮ 提交于 2020-01-05 08:46:07
问题 I have firefox 11 or the windows XP version of IE - and the browser has jre6 and I have a 6 month old jsdk but the browser doesn't use that for runtime. nice if log window had history and a scrollbar if there are a lot of prints. I'm using log4j to do the prints. Thanks. 回答1: I hope I understand your question correctly, I think what you are looking for is the 'Java Console'. Here is some info about how to find it and how to enable if it is disabled: http://www.java.com/en/download/help

Getting Applet not initialized error

最后都变了- 提交于 2020-01-05 08:00:34
问题 is everything is right in my programme?? When i run it the a screen appears but it says that Applet is not initialized import java.applet.Applet; import java.awt.*; import javax.swing.*; public class JobseekerLogin extends Frame { public void CreateFrame(){ Frame frame = new Frame("Frame in Java Swing"); frame.setSize(400, 400); frame.setVisible(true); Label lb = new Label("Username"); add("East",lb); add("West",new TextArea("")); Label lb1 = new Label("Password"); add("East",lb1); add("West"

Java Update 1.6.0_26 Causes SOAP Exception - NoClassDefFoundError:Could not initialize FastInfosetReflection

狂风中的少年 提交于 2020-01-05 07:19:33
问题 I have an applet that makes a SOAP request to a web service. It has no certificates or special security considerations, just a basic applet and webservice. After updating Java on a few computers to 1.6.0_26 I can say without a doubt that the update causes the following exception. (Previous versions of Java still work) com.sun.xml.internal.messaging.saaj.soap.MessageImpl saveChanges SEVERE: SAAJ0540: Error during saving a multipart message com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:

Problems when drawing images in java applets

Deadly 提交于 2020-01-05 07:12:20
问题 I am new to java and I am creating an applet. I ran into some problems where I cannot draw anything using any of the draw functions. I know my code is not perfect but I would appreciate any help. This is my code: import java.applet.Applet; import java.awt.Graphics; import java.awt.Image; import java.awt.Color; public class CardsJavaProgram extends Applet { public void init(){ this.setBackground( Color.blue ); } public void paint( Graphics screen ){ int x = 10; int y = 10; int x2 = 10; int y2

Passing custom Objects from applet to servlet

天大地大妈咪最大 提交于 2020-01-05 05:49:05
问题 I have a servlet and i want to pass through UrlConnection some objects. When I tested it, it worked fine. When I passed Java native objects ( String , File ..). But when I try to pass my own Object (instance of my own Class), Object is sent into Servlet correctly via ObjectOutputStream but when I wanted to restore object in servlet side it doesn't work. it throws exceptions that My class was not found. I have MyObject class in project with applet where is loaded and sent to servlet and then i

Windows/Linux issue with Client/Server Socket with Applet

只愿长相守 提交于 2020-01-04 13:26:22
问题 I'm new at socket programming and threads. I'd be happy if anyone can help me out. I currently working on a multi-client server problem where each new client connection gets its own thread and its an applet. here is a code snippet of when to close the thread of a client when it disconnects. String inputMessage; //message stored here BufferedReader in = new BufferedReader( new InputStreamReader(socket.getInputStream())); while((inputMessage = in.readLine()) != null){ //Update message buffer

Windows/Linux issue with Client/Server Socket with Applet

旧城冷巷雨未停 提交于 2020-01-04 13:26:12
问题 I'm new at socket programming and threads. I'd be happy if anyone can help me out. I currently working on a multi-client server problem where each new client connection gets its own thread and its an applet. here is a code snippet of when to close the thread of a client when it disconnects. String inputMessage; //message stored here BufferedReader in = new BufferedReader( new InputStreamReader(socket.getInputStream())); while((inputMessage = in.readLine()) != null){ //Update message buffer

Custom file picker without using <input type=“file”/>

邮差的信 提交于 2020-01-04 06:26:08
问题 I am working on a java-based (webwork framework) web-app where the file to be uploaded needs to be compressed first. Since there's no way to set the value of "input type='file'" element via javascript, I decided to take the route of an embedded applet. Basically this applet compresses the chosen file, then uploads the compressed file to the server via scp. It worked well, but I have issues regarding the rendering of the web page itself. I am thinking instead of implementing the file picker

Accessing input type=“file” full path from a Java applet

我怕爱的太早我们不能终老 提交于 2020-01-04 02:55:14
问题 It is possible to access HTML DOM from an applet using netscape.javascript JSObject API. However, if I query a value of a input type="file", on some browsers (Opera) I get a full path to a selected file, but on other browsers (Firefox, Chrome) just a file name without path . Is it possible, having an HTML input type="file", to figure out the full path to the file selected in it from a Java applet? The reason why I bother: signed applets can access file system, and browsers' file selectors are