For my java program I'm using Rhino to execute JS scripts. Now I'm trying to convert it to an applet which works great, except that everytime it's calling evaluateString(...) the JVM throws an AccessControlException. After some (a lot) of research I found out that this is caused by Rhino's custom classloader. My problem is that after hou...
I'm having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on. It works sometimes, but othertimes it throws an obscure exception, that googling for has not turned up any useful information, besides a few Java bug reports that were never resolved (thanks Sun).
Here is the code I am u...
When I build with Xcode (I am porting a large project with tons of errors at this point), is there a way to have it start with the CPP file that contains my main class (I obviously know this file) so I can correct errors there first?
I mean we have about 400,000 errors moving from CW to Xcode.
...
I have a non-signed java applet interacting with the same host. Every time I click on an element in my page, the applet (which is a third part applet I have no control on) should load data from a URL. I say should, because for some files, I get
java.security.AccessControlException : access denied (java.util.PropertyPermission http.agen...
Hi I have created a Self Signed Applet , but not able to access local files system .What have i to do ?
...
Hi all. May I know is it true that a java applet only supports 24 bits image? If a 48 bits image is loaded, it will be truncated to 24 bits? Thank you.
...
I am trying to communicate between an applet and a servlet. I first tried Http connection. But I am not getting the desired result. Hence decided to switch to socket communication. Hence I wanted to know which port to use for the same. I remember reading somewhere that port 80 is ideal. Is it port 80 or port 8080? I need a port that is n...
I found a couple of questions about this, but didn't find a solution.
I'm trying to write an applet so a web application can print silently documents. The idea is to provide a Javascript function which calls an applet method passing the document it wants to print. The applet just looks for the local printer an send the job.
The applet i...
I am designing a chat server in java. The communication is Http based and not socket based. In the client side I have an applet. In the server side I have a servlet.
Applet: I create a new thread to listen for incoming messages(GET method). The main thread is used to send messages(POST messages).
The partial code is :
public void star...
I've written a basic Java applet which works as a map viewer (like Google Maps) for a game fansite.
In it, I've implemented an A* pathfinding algorithm on a 2D map with 16 different floors, "connected" on certain points. The floors are stored in PNG images which are downloaded when needed and converted to byte arrays. The node cost is ...
As from subject. How can I determine if the applet is running in the browser? I want to have a mock data provider to do debugging without involving the browser, and neutralize all the LiveConnect calls I have if I'm not in the browser.
...
Hello everyone,
I have an applet. In this I have a JLabel component. When the user clicks this label, a new JFrame component gets displayed. I want to set the value of setDefaultCloseOperation() for this frame as JFrame.EXIT_ON_CLOSE. However, I get a SecurityException if I do that. I read the documentation of JFrame.EXIT_ON_CLOSE and i...
I would like to run an applet on firefox 3.6 on ubuntu 10.4.
and I start firefox with sudo on command line to see the java console output.
My appplet code changes some policies and it works fine on windows. But on ubuntu I get this error:
java.lang.SecurityException: Changing the SecurityManager is not allowed.
at net.sourceforge.jn...
I have been writing web applications for quite sometime in PHP with MySQL. I always stored my database connection information into a configuration variable and connected to the database that way.
A client wants a java applet for their website to communicate with their database. I'm very hesitant on this because the applet is going to be...
I've written a simple Java applet to generate a technical image based upon some data in a CSV file. I'm passing in the CSV file as a parameter to the applet:
<applet code = "assaymap.AssayMapApplet" archive = "http://localhost/applet_test/AssayMap.jar" height="600px" width="800px">
<param name="csvFile" value="http://localhost/apple...
Hi, I'm going to deploy my Java game to show it to my friends and whatnot, but I'm having trouble deciding between Java Web Start and applets.
Under what conditions is one preferable over another and what advantages/disadvantages are there?
...
Hi, I don't know if a solution exists but it would be highly desirable.
I'm making a Scala Applet, and I want the main Applet class to be a singleton so it can be accessed elsewhere in the applet, sort of like:
object App extends Applet {
def init {
// do init here
}
}
Instead I have to make the App class a normal instantiatab...
I currently have a Java Applet which contains a method callfromjs(). Javascript calls this method from the applet so that I don't have to deal with the clunky applet GUI, and then I can create the responses on the DOM easily from javascript.
The problem is that the browser hangs while first loading the applet. To get around this, I fig...
I've developed a simple applet that imports an image from the clipboard. When i run the class file from NetBeans, everything works fine. But when i try to run it as an applet ... it gives me lots of errors in the java console and does not run ...
- The applet is signed
- There is a static method in one class, called getImageFromClipboard...
Hi, Im trying to organise the layout of four canvas3d objects in a single MainFrame. Iv tried using some layout managers but none are working (or im doing it wrong). Can anyone give me advice or point me to a way to get this to display the four canvas's as a grid of four?
Thanks,
John
public class Main {
public static void Ma...