applet

Java applet loading images from external jars

I have a jar on a server, and users should be able to develop extensions for it. Therefore the jars main class should be extended and some resources should be added to a second user created jar which will be loaded from another server or locally. Now I have problems accessing the resources (images) from the user loaded jars. Heres is the...

Can an applet communicate with an instance of a servlet

Hello everyone, I have an applet that communicates with a servlet using Http (Not sockets). Currently, each instance of the applet (i.e. when each applet is run by a different client on a different computer), all the instances communicate with the same servlet. What I want is that each instance of the applet communicate with different i...

How to initiate chatting between two clients and two clients only, using applets and servlets?

Hello everyone, I first need to apologize for my earlier questions. (You can check my profile for them)They seemed to ask more questions than give answers. Hence, I am laying down the actual question that started all them absurd questions. I am trying to design a chat applet. Till now, I have coded the applet, servlet and communication...

Reading XML in Java Applet

I know: I have to sign the applet so it can read files How to parse XML files My Questions would be: Should I keep the XML file in the .jar or separate? Are there some best practices tutorials? if so please link me ...

.net activeX object

Hi, I am trying to use my .net image editor user control as an activeX object in a web form. After internet search, I created a asp.net web site from VS2008 and added the following code <object classid="res/ImageEditor.dll#ImageEditor.Editor" height="400" width="400" id="myControl1" name="myControl1" > </object> <INPUT id="...

Permissions error for a signed Java applet when including external JAR files

I have a signed Java applet. And it works fine. But now I have to integrate some 3rd party JAR files with it. When I test it from Eclipse, the whole thing works correctly. But when I test it as an applet, it gives me a java.security.AccessControlException: access denied (java.io.FilePermission ...) I thought this was because those 3rd p...

Problem with loading a PNG image in JApplet.

Hi there, I'm trying to load a PNG image from JAR file when running JApplet. The file is, I think, loaded properly - there are no errors. However it is not displayed. img.png is placed in the same directory as MainClass.java file. Here is the code: InputStream imageURL = this.getClass().getResourceAsStream("img.png" ); byte[] bytes = ...

SDK jar file downloading taking time in production

Hi All, I am having a strange issue, In our ASP.NET MVC application we are using jar files (Applet) , which will get downloaded in one of the first pages, In the QA environment these jar files were downloading with no time but in the production envirnment its these jars are taking more than a minute. I don't have much knowledge on the ...

Maven copy project output into other project resources

There are two projects: 1) applet project that outputs jar file 2) web app project that should host the jar file. After (1) finished building, the applet jar file should be copied into the webapp folder of (2). The purpose is that (2) will host the applet (1) on the Internet. A lot of examples explain how to use another project as a li...

Starting Java applet directly from jar file

The goal is to have an applet run from a jar file. The problem is that the applet only seems to want to run from an exploded jar file. Samples on the Internet suggest this applet tag: <applet code="com.blabla.MainApplet" archive="applet.jar" width="600" height="600"> This will not even try to look in the jar fi...

Including Applet in JSP page

I wrote an Applet program which draws a pie chart. The values for the applet should be passed from JSP page. I wrote the following lines of code in JSP: <jsp:plugin type="applet" code="drawPie" codebase="." width="750" heigth="300"> <jsp:params> <jsp:param name="user_id" value="<% =user %>"/> </jsp:params> </j...

Why does Java tell me my applet contains both signed and unsigned code?

My signed Java applet has been running fine until Java update 19. Now some but not all of our users on Java Update 19 report a java security message stating that our applet contains both signed and unsigned code. The process for creating our applet is as follows: 1: Clean and Build the applet project in Netbeans IDE. 2: Open the Apple...

Where to place java applet policy file?

Hi all, I am working on an artificial intelligence project which is a logic game and aims two user connecting to the server on the network who acts as an Admin and then start to play one by one. In order to create connections, i have a server code which is just listening on localhost:8000 and assigning team values to the clients as the...

Jpanel layout problem, show a two column of buttons and labels, how?

i want to make a jPanel ( vehicleListPanel) with two column like this NAME | button name | button ... left column show vehicle name , and right to show an icon proper with vehicle status (red, green icon) ... i try to make it, but there is problems with button size, i can't set it how i want, plz help me with example thanks ...

Inter applet communication.

Hi , In my understanding each applets are independent entities . Is it possible to have inter applet communication ? . If so , how it could be achieved ? Thanks J ...

Java application vs. Java applet

Hey guys I created this pacman game in Java. I would like to put in on my website so people can play on there. However I have never done any applets, nor do I know javascript. Is there a way to automatically convert the project into an applet? Or do I have to code it from scratch? ...

Images in Applet not showing in web page

I am trying to display a JPEG image and a moving dot on a Java applet which I am using on a web based application. However, when I run the applet it works fine, but when I display the applet from the JSP page, I get the moving dot but not the JPEG image. Is there a specific folder where the JPEG needs to be? These are the 2 methods i u...

Interface Java Applet using Visual Basic

Can you point me to a reference on accessing data in a Java applet using Visual Basic? I need to do some research on whether or not it is feasible for the project I am working on, but it has been difficult to find any information. Thanks. ...

The applications digital signature cannot be verfied , do you want to run the application

Hi Every one , I have a Key Store and from the Key store i get the Certificate , and i sign the applet jar with the certificate that got . I am also importing my certificate to the "Trusted Certificates " , It says import sucess full but the certificate is not shown in the Trusted certificates. On running the applet (html applet) , i am...

Java applet icon doesn't show

I have a java applet where I've changed the image icon that appears in the top left corner of the window. The code I use is this: Toolkit kit = Toolkit.getDefaultToolkit(); Image frameIcon = kit.getImage("src/myapp/resources/logo.png"); getFrame().setIconImage(frameIcon); Everything works fine until I deploy the ap...