Questions tagged [appletviewer]

A command used to run Java applets.

A command used to run Java applets. This command supplied with the Java JDK and could be executed from the command prompt. It's also used for the development purposes to test Java applets before they are deployed to the web server. The appletviewer runs applet without browser and even doesn't emulate the browser, instead it used a frame window and place the applet inside it and it runs like a normal Java AWT/Swing application. To run the applet from this command required to supply the argument that contains the path to the HTML file with the applet tag inside it.

112 questions
1
vote
1 answer

Java Applet: no antialiased font in browser (but in AppletViewer)

In the AppletViewer, my Applet looks like this: In the browser, my Applet looks like this: As you can see, the font is not antialiased. Also the background color is different. And all the text is cutted on the right side. What could that be? You…
Albert
  • 65,406
  • 61
  • 242
  • 386
1
vote
2 answers

Processing.org applet out of IntelliJ IDEA

I merged my code from Processing.org into IDEA some time ago as it was just more comfortable to develop. Now I need to export the code to an applet. I already set up the configuration for that task, but it doesn't run with the appletviewer (it just…
Patrick
  • 7,903
  • 11
  • 52
  • 87
1
vote
1 answer

Strange HTMLEditorKit problems

The code snippet below has the problem, that it will not work, if the reload button is pressed in the browser containing the applet window. It works on the first start of the applet, but not on a reload. The same thing happens in the AppletViewer.…
Rene
  • 3,746
  • 9
  • 29
  • 33
1
vote
1 answer

Java applet: Read ttf file - access denied

I have the following lines in my Java applet init function: try { this.font = Font.createFont( Font.TRUETYPE_FONT, new File("fonts/myfont.ttf") ).deriveFont(24f); GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font); }…
Flo Edelmann
  • 2,573
  • 1
  • 20
  • 33
1
vote
0 answers

Applet not working properly on mozilla firefox

import java.awt.*; import java.applet.*; import java.net.*; import java.security.AccessControlException; public class TimePass extends Applet { @Override public void start() { try { URL u = new…
kevin gomes
  • 1,775
  • 5
  • 22
  • 30
1
vote
1 answer

Why Appletviewer throws AccessControlException: access denied

Why Appletviewer throws error with this: thread = new Thread(this,"main thread");
Tom
  • 6,725
  • 24
  • 95
  • 159
1
vote
3 answers

java applet won't work

this is homework stuff, but the question is not much about coding. the task is to write a java applet to work on an m-grid server. i have the server running on apache. it has a few sample applets in .jar and .class form. the .class versions work;…
1
vote
1 answer

Applet viewer Run-time error. Appletviewer not opening

import java.awt.*; import java.io.*; import java.applet.*; /* */ class App extends Applet { String str = " "; public void init() { str= "from int method"; …
1
vote
1 answer

How to set size of applet?

I have written a little test applet and start the applet via Eclipse appletviewer. I have noted tag at the begginig of the code, but appletviewer doesn't see it. It starts the applet in standart window with the same size every time. I use JDK…
Buralek
  • 13
  • 1
  • 1
  • 4
1
vote
0 answers

Java Applet: Increase stack size

I was writing a small Java Applet in Eclipse to test a recursive algorithm. Since there are quite a lot recursive calls I needed to increase the stack size: -Xss10m This worked. Then I wanted to test the applet outside of Eclipse with appletviewer.…
JustABit
  • 425
  • 4
  • 11
1
vote
1 answer

Signed Applets don't Load

After change in security in new version of Java there is a popup showing information about unsigned content every time site is reloaded. So we decided to sign our applets (and all libraries used). But after signing, all applets ceased to load on…
HuTa
  • 168
  • 1
  • 8
1
vote
1 answer

Java appletviewer error

I've just started messing around with Java, and I've done the following applet: import java.applet.*; import java.awt.*; import java.util.*; import javax.swing.*; /** * The HelloWorld class implements an applet that * simply displays "Hello…
Zack
  • 661
  • 2
  • 11
  • 27
1
vote
0 answers

Difference between calling stop from applet menu and restart in appletviewer

i have an animation program using threads and applet. when i call stop option from applet menu in appletviewer program works normally but when i press restart there is some abnormality in its working. Thread does not come out of the while loop on…
jaya
  • 11
  • 2
1
vote
1 answer

My applets do not display in my browser (Google Chrome)

I had an issue a couple of days ago with Java applets. Here is my code: Hello.java class file //Reference the required Java libraries import java.applet.Applet; import java.awt.*; import java.io.*; //The applet code public class Hello…
Antreas Apostolou
  • 315
  • 2
  • 9
  • 17
1
vote
0 answers

permission java.lang.reflect.ReflectPermission "suppressAccessChecks" with gson deserialization

I'm getting Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission"…
Andrzej
  • 123
  • 1
  • 6