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
0 answers

AppContext.getAppContext() is null when JavaFX 2 app is run in a browser

Before my recent update to Java 1.7.0_25, I was able to initialize a new JApplet from a browser embedded JavaFX 2.2 application. Now I get this exception: java.lang.NullPointerException at javax.swing.SwingUtilities.appContextGet(Unknown…
Nealvs
  • 306
  • 1
  • 5
3
votes
1 answer

Unable to load Xuggle library: java.lang.UnsatisfiedLinkError

I'm designing this Java web applet to stream video via RTSP from a video server. In order to render this video, the Xuggler 5.4 library (xuggle-xuggler.jar) will be used. Currently, video is rendered properly when I run it on Windows XP and Ubuntu…
Justin
  • 742
  • 5
  • 17
  • 34
3
votes
1 answer

How to use keyListener in Java applet

I have absolutely no idea on how to use KeyListener in an applet (okay, I've got an okay idea). I know it has something to do with setting focus on the applet, but I have no clue as to how to do that. My program runs fine as an application, but it…
Spidermaninja
  • 82
  • 1
  • 1
  • 10
3
votes
3 answers

Java Applet 411 Content Length

I am new to Java. I wrote an applet with a gui that sends results (int w and int p) to a server, and I get the "411 Length Required" error. What am I doing wrong? How do you set a Content-Length? This is the method that communicates with the…
psdev
  • 43
  • 1
  • 5
3
votes
1 answer

Changing look and feel on a Java applet

Ok, So I made an test java applet to make sure I know how to make them but I the default look and feel looks really ugly. So I want to switch it Nimbus but my tacit isn't working. I've done about an hour worth of Google searching but nothing came…
Jdman216
  • 55
  • 1
  • 10
3
votes
2 answers

JApplet & KeyListener

I'm developing an application for my computer science classes. The task is to write a calculator but without using JTextFields or JTextAreas. I've come up with an idea of implementing KeyListener which works nice in both appletviewer and JFrame but…
Robin92
  • 533
  • 1
  • 6
  • 20
3
votes
1 answer

Why does my JApplet initially appear white?

I've made a JApplet application which consists of nine buttons. When the applet is first launched, it is completely white. If you click on the areas where the buttons are, the button will become visible and will function. 30 seconds after the…
W.K.S
  • 9,787
  • 15
  • 75
  • 122
3
votes
1 answer

The Marker Won't Change

package CreatingWindows; import javax.swing.*; import java.awt.geom.*; import java.awt.*; import javax.swing.event.MouseInputAdapter; import java.awt.event.MouseEvent; public class myCurveApplet extends JApplet{ @Override public void…
Dummy Derp
  • 237
  • 1
  • 3
  • 15
3
votes
2 answers

Embedding a JApplet into a JFrame

Ok so i was wondering if anyone could tell me where i am going wrong. I have a JApplet called Game which runs fine if i run it from within eclipse using the AppletViewer and a JFrame called GUI that holds the JApplet. Here is the Code for both: PS.…
Lucas_F98
  • 105
  • 1
  • 1
  • 5
3
votes
1 answer

Using components in a JApplet that has a continually repainted JPanel

I'm having a major problem with this school assignment; lucky I started it early for once. We've been asked to make a children's math game using a JApplet. So far so good. I have managed to create a JPanel, which is then added to the JApplet and…
JohnW
  • 345
  • 1
  • 7
  • 15
3
votes
1 answer

Unable to set JApplet Background Color

My problem is that when trying to set the background color in a JApplet i'm trying to create, i am unable to get any color other than the default gray. I would really appreciate it if someone was able to not only tell me whats wrong but also explain…
superdemongob
  • 248
  • 5
  • 13
3
votes
1 answer

uk.co.mmscomputing twain scanner

I am using this mmscomputing library as java applet to scan an image or document. Using swings,awt i created one scan button which is acquiring scanner by calling scanner.acquire() method of mmscomputing jar.. and then placing that scanned image…
Ashish Kataria
  • 520
  • 3
  • 11
  • 31
3
votes
0 answers

signed applet doesn't work on browser

I have an applet that reads from the microphone with that code (defn mic [] (let [info (DataLine$Info. (get-class) (get-format)) line (AudioSystem/getLine info) out (ByteArrayOutputStream.)] (.open…
tolga
  • 51
  • 2
3
votes
1 answer

Creating a JApplet using netbeans and maven

Hi so ive been trying to create a JApplet do create a GUI for a project im working on. But I cannot seem to be able to get it to work when using maven with the project. I have created the GUI visually this far, and it works fine in a non-maven…
Matthew Pigram
  • 1,400
  • 3
  • 25
  • 65
2
votes
1 answer

Add JApplet to JFrame (or AWT Frame)

Is there a possibility to add an Applet (JBufferedApplet to be specific) to a JFrame (or an AWT Frame). I've allready tried this, but it looks like the Applet simply doesn't run. It makes the background color of the JFrame gray (the same color of…
Arolition
  • 145
  • 1
  • 2
  • 6