Questions tagged [japplet]

JApplet is a class from Swing library in the Java programming language. Applets can be embedded in webpages and run client-side if a JVM is provided.

JApplet is a class from Swing library in the Java programming language. It's a successor to AWT's Applet class. Applets can be embedded in webpages and run client-side if a JVM is provided.

The use of applets is usually discouraged and has not been widely adopted. The implementation of applet-based applications is a common academic exercise seen as an easy way to become familiar with Java UI libraries.

JApplet Javadoc

733 questions
3
votes
1 answer

Waiting for user input in JApplet from another class

I have two classes. One creates the GUI in JApplet, and the other class takes user input from the applet and does calculations with it. The applet class creates GUI and tells the calculation class to start. Then the calculation class calls on a…
GreenBeans
  • 33
  • 1
  • 4
3
votes
1 answer

Java JApplet: Button-Tree problem

This applet should take the tree stored in menuTree and follow a menu construction based on it. currentNode stores the menu the applet is currently on, and each of its children should be displayed as buttons. Upon clicking a button the applet should…
pocho
  • 31
  • 1
3
votes
1 answer

How To Sign a Jar File for an Applet?

Does Singing a Jar File For an Applet use the same process as signing a Jar file for an application?? If so, can someone tell me how to sign it? I have an Applet that writes to your APPDATA, kinda like Minecraft.
Jay
  • 143
  • 2
  • 11
3
votes
1 answer

JPanel custom background

OK, let's say I have this Image: ImageIcon imageBack = new ImageIcon(System.getenv("APPDATA") + "\.my_game\bg.png"); and I have a JPanel that I can toggle on and off. How do I get that JPanel to use the custom ImageIcon?
test
  • 17,706
  • 64
  • 171
  • 244
3
votes
2 answers

Saving JPanel as image

I am developing an application allow user load an image in a layer. User can draw some picture on another layer and save only the image that user drawn.Here is my code: import java.awt.Dimension; import java.awt.Graphics; import…
anh tran
  • 159
  • 2
  • 13
3
votes
2 answers

KeyListener doesn't work in JApplet

I have a class (myKeyListener) that extends keyListener and a I have a JFrame. I added keyListener to my JFrame and it worked fine. But I had to change it to applet, so I changed JFrame to JInternalFrame and added this to a JApplet. (I didn't change…
user827703
  • 31
  • 2
3
votes
1 answer

Bring Extjs window in front of Applet (JApplet)

I am creating Java applet and extjs button inside JSP file body tag, When I click the button I am creating extjs window with float option. Problem is: Button is rendered below the applet. Window is rendering under the applet(window is not coming…
vineth
  • 873
  • 5
  • 33
  • 57
3
votes
3 answers

Presence of constructor in an applet throws exception

I'm running the below applet. In it, the moment I add the constructor (even empty), the applet throws a runtime exception: MainFrame.class can't be instantiated, java.lang.InstantiationException If I remove the constructor, no exception in thrown.…
Anirudh Ramanathan
  • 46,179
  • 22
  • 132
  • 191
3
votes
1 answer

JApplet: setting the size of the frame

I read that this is a tricky question because an applet is run in the browser. But I would like my applet window to always maintain the same size. (Right now working with Eclipse I can slide the size of the window.) For the moment I only do…
Jason Rogers
  • 19,194
  • 27
  • 79
  • 112
3
votes
0 answers

How to move graphics based on input from arrow keys?

I am making a graphics where the circle should move with arrow keys but I checked my code yet can't find the problem. The applet is working and initializing but the circle is not moving when i pressed the arrow keys. Can you help me here? public…
anon
  • 31
  • 3
3
votes
0 answers

Convert JFrame into JApplet

I want to convert my project that extends JFrame in an applet in order to run it on a web page. Can someone help me and tell me how I can do this? Post here a fragment code of the project: import java.awt.EventQueue; import…
3
votes
1 answer

Unknown publishers applet browser, Signing jar

i can't understand where problem lies to run applet in browser when deploy my project accordind…
Attif
  • 1,158
  • 13
  • 17
3
votes
0 answers

Applet - not working because of security.*Exception

The applet to initialise, read and write security tokens show the following Exceptions: com.sun.deploy.security.BlockedException: User has denied the privileges to the code sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown…
theAnonymous
  • 1,701
  • 2
  • 28
  • 62
3
votes
0 answers

How to solve PDFBox's unsupported/disabled operation problems

I'm using PDFbox to render a PDF with forms in a java applet and when I change the forms information for the first time, it takes way too much time to reflect the new information in the displayed form and PDFBox logs the following two…
vvolkgang
  • 471
  • 8
  • 26
3
votes
2 answers

javax.net.ssl.SSLException: Server selected improper ciphersuite SSL_RSA_WITH_DES_CBC_SHA

When applet is served through HTTPS connection I am getting following exception. This problem is experienced at Java 1.7.0_25 but not at java 1.6. when i look at the chipersuit supported by java…
Mithat Bozkurt
  • 547
  • 5
  • 17
1 2
3
48 49