FAQ Database Discussion Community


Why does my Image not rotate?

java,rotation,applet,bufferedimage,graphics2d
This code displays the logo, but there's no rotation. Am I missing something? I've been trying to rotate for a long time. Everything displays fine, and the calculations are correct, but the image displays as a normal image import javax.swing.JApplet; import java.awt.Graphics2D; import java.awt.Graphics; import java.applet.Applet; import java.awt.Font; import java.awt.image.*;...

I can't run my own applets in browser

java,security,browser,applet
I can't run my Java applet in any browser - Java blocks it for security reason. I have Java 8, so I can't set security settings to medium. What I have to do? (in my own applets I mean applets that I wrote and it can't harm anything)

How can the java application user modify/update application files on the web?

java,swing,web,applet
I am developing a java application(although, I am unsure if it should be developed as a desktop application, applet, or JWS). The application is basically a database of homeworks and tasks in physics. It uses .txt files in which it keeps records of these tasks, and the user has to...

My code about polygon is not working

java,applet,awt
i had a problem about polygons , i wrote my code but it is not working.Possibly i missed something because i don't have any error message . import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; public class drawPloygon extends Applet { int [] x ={20,20,30,40,40}; int y []={40,20,30,20,40}; public void paintPolygon (Graphics...

Spawning mutiple circles and make them move

java,graphics,applet
I'm trying to teach myself java and I "try" to code a little game. I have a problem and I guess the solution is very simple but I'm struggling. The basic idea is that I am controlling a circle and I want to spawn circles every 5 seconds at random...

applet don't load on firefox

java,html,firefox,applet
Hello I am trying to load applet on web browser. I have create html and include applet tag <applet code="com.asprise.imaging.scan.ui.demo.PanelMain.class" codebase="."archive="asprise-imaging-ui.jar,asprise-imaging- scan-core.jar" width="400" height="300"> I have jar file also in same folder where i created my html,it gives me error. This plug-in is not supported Kindly help me to solve...

Why don't these images show up?

java,swing,applet,jbutton
I am working on a slot machine in Java and so far I created a button that will randomly generate two pictures. For some reason one of the pictures shows up while the other picture does not. I do not understand the issue as the code for both of these...

Troubles with applets in c# application

java,c#,applet
I'm trying to run some applets in a web application developed with c# and when I run it, I get this message: ClassNotFoundException .PruebaPulsacion.class I have checked some questions here but they doesn't work for me and I don't know what to do. In my aspx page I have this...

How to use panels in applets?

java,applet,awt
I need to write a strategic game which contains awt panel. Scenario:- Firstly, I need to read from a txt file(my map) and draw my images based on the txt file. (i did it in the code below). public class temp extends JApplet implements Runnable,MouseListener { public void init() {...

Java - Applet to Executable Jar Wrapping

java,swing,applet,jframe,jpanel
I have written a Java XML Parser as an Applet. It is looking and functioning well enough in this form. My Question, Is if I want to run this without a browser, how Would I properly wrap it to run as an executable? GUI.java -------------- import java.applet.*; import java.awt.*; import...

Make 2 cardlet Java Card communicate

applet,smartcard,channel,javacard
I have 2 cardlets Java Card on the same smart card that I want to make communicate. I could select an applet then send the corresponding APDU and then deselect it and select the other one and etc... I am wondering if it is possible to do it more properly...

Issue with Linked List (Java applet)

java,applet
In this code, I am trying to initialize a linked list of ovals that are sent to a class to be drawn. public void actionPerformed(ActionEvent e) { oval p; Graphics g = this.getGraphics(); int x, y, height, width, fill; ListIterator li; LinkedList<oval> list = new LinkedList<oval>(); li = list.listIterator(); x...

Alternatives to Java applet to launch Microsoft Office applications

java,javascript,html5,google-chrome,applet
In our web application, we used to use a Java applet to invoke MS. Office applications e.g. Word to open, edit, and save back a file to the server. Google Chrome will no longer support NPAPI, so soon we can not run our applet in Chrome anymore. Plus, it seems...

How to build my app, need guidelines

java,android,applet,server
I trying to build a very small android app, just for my own use and knowledge, I've learned Java a few years ago, but now and i need some help. the app will use Google maps and will send the location to a server (can someone recommend on one?), that's...

Java.lang NullPointerException in Java Applet

java,nullpointerexception,applet
Good evening all. I have been racking my brain trying to answer this question on my own but I am at a loss and considering throwing something. Let me preface my question with the fact that this was a school project that the instructor is letting me re-submit in an...

Key Listener not working in JApplet

java,swing,applet,keyboard-events
This is a break the brick type of game where the user cannot let the ball fall below the paddle. By the way paddle_x is sets the x coordinate of the paddle. I have a MouseListener that works very well however, the KeyListener does not. I am wondering what I...

java applet run local host but doesn't run after publish iis , By asp.net

java,asp.net,iis,applet,localhost
I embedded java applet in my asp.net web site to make digital signature , it work greet in local host , but when publish it , java applet run on browser but java script code that call function on java applet is not defined codesignApplet = document.getElementById('SignApplet'); signApplet.SetCertificate() So when...

Images do not appear in applet

java,swing,applet,paint,keylistener
I am working on a game.I want to add images to the applet but they do not appear there until I resize or minimize the applet.I do not know whether my image observer is wrong or not. The images are in right path.Their in build and class folder with correct...

Display applet version in Java Cache Viewer

java,caching,applet
Helllo, When I open the Java Cache Viewer, see applets that were used. Some applets have shown the version number and some do not. What is it specifically for the version number? Where is this version number determined? How do I set it to display the version number at my...

JNLParseException[ Could not parse launch file. Error at line 6.]

java,applet,java-web-start,jnlp
I am using JNLP to load an Applet on browser. My applet is running fine with java version Java 1.7.0_25 but facing problem when running with Java 1.7.0_45. My error stacktrace is as follows NLParseException[ Could not parse launch file. Error at line 6.] at com.sun.javaws.jnl.XMLFormat.throwNewException(Unknown Source) at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)...

Java applet tag for IE: require java 6, install java 8

java,internet-explorer,applet
I'm using java applet on my site. I want to provide correct applet tags which will work in modern browsers and in old IE versions (8+). As far as I understand, modern browsers use <embed> tag and <object> tag provides best experience for Internet Explorer. Internet Explorer even performs automatically...

Iterating through a Linked List in another class (Java Applet)

java,oop,applet
I have this code for when an applet button is pressed: public void actionPerformed(ActionEvent e) { oval p; int x, y, height, width, fill; x = Integer.parseInt(xfield.getText()); y = Integer.parseInt(yfield.getText()); height = Integer.parseInt(heightf.getText()); width = Integer.parseInt(widthf.getText()); list.add(new oval(x,y,height,width)); repaint(); } I need to iterate through the list of ovals and...

how to draw a line graph using java with fixed X-Y axes

java,javascript,jquery,applet
There is data which is distributed in two columns. X axis ranges from 0 to 1 with step values as 0.1, 0.2, 0.3.... 0.9,1.0. and Y axis ranges from 0 to 1500 with step value of 100. 0,100,200....1500. Data is in following form: Column 1 Column 2 Column 3 A...

Exception in thread “AWT-EventQueue-1” java.lang.NullPointerException in java Applet

java,nullpointerexception,applet
I am creating a program in java which reads a text file from applet and puts colors in applet window pixels defined by file. The problem is that when i run this program the Exception occurs and i have done everything i know to resolve it but didn't succeed. My...

PrivilegedActionException trying to invoke a signed Java applet from JavaScript

java,javascript,security,applet,jna
First off, I am not a Java developer. I had to create a Java applet to invoke some code in a native DLL I wrote from the browser. I use JNA to load a native DLL and invoke its methods. I have signed the applet using a self-signed certificate. The...

Glitch on one type death (but not the other) and winning in java applet game

java,audio,applet,paint
This is a java Applet game. There are 3 game states, Running, Dead and Win. My question is two part, but I think they are related since they happen at the same point. Question 1: When you die by losing all your health the "Start over" button is displayed once....

Is there any way to know if the user has rejected the applet?

java,javascript,applet,jsobject
I am working on a web application. I first check whether Java is enabled or not on the browser. Now only if Java is enabled I load the applet, else I do not load the applet. Now I have two cases: If the user accepts the applet, show div1 If...

What date / version is Chrome removing support for java applets?

java,google-chrome,applet
http://blog.chromium.org/2014/11/the-final-countdown-for-npapi.html In September 2013, Google announced that their Chrome browser would no longer support the Netscape Plug-in API (NPAPI). This means that Chrome will block the installation of the Java plug-in used by our software through applet support, in legacy versions. Google plans to gradually discontinue support for NPAPI during...

How to send a data array to my Applet and manipulation it by Applet and return new data in response apdu?

arrays,applet,javacard,apdu
I want to send a random byte array including for example 24 elements to my JavaCard applet and then my applet is supposed to change that array using a specific method. For example that method XOR each elements with 0x05 and returns the result array in APDU response. To aim...

Java 7 Update 45 (64-bit) blocking java applet self signed

java,applet,self-signed
I'm seen this question, and I want know if this solution will work only on Java settings in my computer or this will work in all computers with Java installed? Because I want that my applet (.jar) works in all computers with Java installed, and with security settings default (High)...

Make a Java applet take 100% height of the parent element

java,html,css,applet
I have this popup window that divides the screen to two rows, one fluid (blue) and the other have constant height of 64px (Green). if the applet is set to 100% height - it will ignore its container and swollen 100 height of the popup <applet id="jumpLoaderApplet" width="100%" height="90%"></applet> If...

Sturdiness of an applet in Java Card

java,exception,applet,javacard
I developed an applet in Java Card and it works fine. Now I am working on the sturdiness of this applet and more precisely, what happens if the card is deplugged during the applet execution for example. I am wondering if there is an Exception which handle this kind of...

How do I successfully use the Thread.sleep() method in Graphics?

java,exception-handling,applet,awt,thread-sleep
This is my code so far: // Imported Classes public class Timer extends Applet { public void paint (Graphics page) throws InterruptedException { Thread.sleep(1000); } } I just want to know how I can get this to work. I've used the Thread.sleep() method in other code before, but never with...

Java 8 Security blocking the applet stored on my computer

java,html,security,applet
I've made a simple java applet that literally only draws "Hello World". I've searched the internet for hours but nobody seems to know how to allow locally stored applets to run when Java 8 is installed. Any help would be greatly appreciated. As an after thought this is my html...

Javacard applet beginner

java,applet,smartcard,javacard
I am new to javacard applet development.How many development tools are there now? Which is the simplest for beginners? As simple as possible... Thanks in advance

Regarding to use deployjava.js file [closed]

java,applet,deployjava
if any problem to use deployjava.js in my applictaion. Is it open Source

Embed shared libs in Java Applets

java,deployment,applet,jni
Is it possible to embed linux shared libs (.so) in Java applets? I know that I can call JNI code from applets (privileged only), but is it possible embed these libs inside the applet?...

Confirm understanding: Tomcat served applet, and app network traffic?

java,tomcat,ssl,applet,tunneling
All.. I am hoping someone who can confirm for me, what I read and what I have observed, regarding the Tomcat Java applet server? I have Linux server running Tomcat (I built two new ones, but based the configuration off the previous two that were present when I came on...

Java Web Application AWT or Swing?

java,web,applet
When developing a Java web-based application, is it necessary to use AWT? I've been researching this question and the answers are confusing. Take for example, Runescape. The user visits the website and can play the game right there. They can also download a desktop application to play the game with....

Java - Applet doesn't work on Firefox when usign ForkJoinPool (while in Eclipse works)

java,eclipse,firefox,applet
when I run the following code on Eclipse (Luna, java vers=8), the code runs and pops-up the two errors messages. On the other hand, when I embed the code in a html page the code shows only the first error message. It seems that calling the ForkJoinPool class crushes the...

How to change list column text color according to field values in SIEBEL HI?

list,applet,siebel,text-coloring
Is there a way to change the color of the text according to field value ? It will be good if there is a way of doing this without scripting, if it is impossible then how to do it with scripting?

Java Applet - Cannot inherit from final class

java,applet,classloader,final
We have a java applet which is working OK in most client environments, primarily Windows 7, but recently we have been asked to support Ubuntu clients as well. The problem is that when the applet is fired up on the Ubuntu client (running Firefox and the natively installed "IcedTEA" Java...

Add a button to Java Applet

java,button,nullpointerexception,applet
Using this code I would like to add a button to the page that displays when the gamestate is either Dead or Win. This button will let the user either start over or go on to the next level. My action listener is not yet fully coded because I can't...

How to upload images in Siebel application for further sending via web service?

web-services,file-upload,applet,image-uploading,siebel
im newbie in Siebel CRM. I have a task of creating form applet that has functionality of uploading images and also some text records. What I need to do is: send images and some text via WS(f.e. using SOAP) to external application and also save text information in siebel db....

Java Applet blinking too much

java,applet,pong,blinking
I have made a simple pong game using the following coding: import java.awt.*; import java.awt.event.*; import java.applet.*; public class pong extends Applet implements MouseMotionListener, Runnable { Thread t; int speedx=5; int speedy=5; int x; int x1=40,y1=40; public void run() { t=new Thread(this); t.start(); } public void mouseMoved(MouseEvent e) { x=e.getX();...

Is it possible to run applet on old version Java

java,applet
I have simple HelloWorld app and I want to run it as applet. Java 7 (update 45) is installed: - Program Files/Java contains following folders: + jdk1.7.0_45 + jre7 As I checked from here http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/applet/applet_execution.html#jreVersion Java Control Panel contains list of JREs which I can select to run an applet...

access denied (“java.io.FilePermission” “execute”)

java,security,applet
I am beginner.it is first applet that i writing i want run exe application with applet java code package appletexample; import java.io.*; import java.awt.*; import java.applet.Applet; public class Welcome extends Applet { public void init() { String execommand = "C:\\windows\\notepad.exe" ; try { Process proc = Runtime.getRuntime().exec(execommand) ; } catch(IOException...

java applet export a jar file as an standalone executable

java,eclipse,jar,applet
I've been looking around for the solution but no one can solve the question I have. I have an applet created by using eclipse and I would like to export it as a jar file so that others can use it easily. The way I used for generating .jar file...

GUI using applet/GridBagLayout

java,swing,applet,layout-manager,gridbaglayout
I need to create a java applet of a calculator with 2 bottoms on the top that take the whole row and under that a text area with a scroll pane and also below that 12 bottoms 4x4. Now I need to make it on an applet not on a...

Java Swing, application or applet?

java,swing,applet
If I want to write a GUI program using Swing, my understanding is that I can either write a Swing desktop application, or write a Swing-based applet (which I can run using appletviewer or a browser). But it's not clear to me which one to use. I don't have a...

Angular.js and Java Applet

java,javascript,angularjs,applet
I'm trying to call a java function via applet using Angular.js with no success. I'm not even getting the Applet loaded (java console is not starting when I load the app). I've used the approaches below without success. Any ideas? Binding applet parameters with angularJS angularjs and closing tags PS:...

Click Button to Open Another Applet

java,applet
I want to call another applet by clicking a button; the old applet will then be closed or reloaded to the new applet. My Action Listener doesn't have anything yet. public class ConImage extends JApplet implements ActionListener { Button btn; Applet second; public void init() { setSize(1600,900); setLayout(null); btn=new Button("Replace...

Java 3D Graphics using Applet and in built libraries only

java,graphics,3d,applet
I want to do Java 3D Graphics without using external libraries to develop a game applet. Sorry I am not that experienced with Graphics and so I am not sure how hard it would be to do it by myself

Why isn't this program repainting a certain part of an applet even when repaint() is called

java,swing,applet,label,repaint
This is a simple rock, paper, scissors appelet. there are 3 variables keeping track of wins, losses, and ties. Then there is a label that is meant to display them. When I used the debugger the repaint method is being called so I don't understand why this portion of the...

What is the current behavior of firefox for the ubuntu menu bar?

javascript,firefox,applet,ubuntu-14.04
I'm trying to development an applet (https://github.com/lestcape/Global-AppMenu) to be used in the Cinnamon desktop. My intention is not modify or create any other code than not be cjs (javascript code). All that i do is: Connect my applet to the com.canonical.AppMenu.Registrar and the Gtk Dbus API. Get all object path...

Java applet play multiple .wav files

java,applet
Hello I am trying to create a simple game, and right now I am trying to add a couple songs to play in the background during the game, which can be stopped and skipped as the player wishes. It seems everywhere I look I can't seem to make the example...

Java: Displaying Positions correctly in Tortoise vs. Hare Applet

java,image,applet,awt
I'm currently working on a Project that shows a tortoise vs. hare race in real-time as an Applet. A random number is chosen, and the animals either move forward, backward, or not at all based on that number. My problem is getting the animals to be seen in real-time. It...

How to run a Java applet in the browser: “Class Not Found exception”

java,applet,classnotfoundexception
I'm trying to get a Java applet to display in the browser - I know this question has been asked a number of times but I can't seem to find the answer that works specifically for this case - over the past few days I've tried everything from moving the...