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
0
votes
1 answer

Can an applet be used with java web start?

I was wondering if A Java applet can also use Java web start, I have been doing this in a project ive been working on an am worried that this may have caused some issues...
Matthew Pigram
  • 1,400
  • 3
  • 25
  • 65
0
votes
1 answer

File Pathing problems in Java applet

I am having issues with my java web start applet in netbeans. I cannot get the pathing right for files and images that need to be accessed by the applet from the place where it is run from (i.e the server). Basically I am using images on the local…
Matthew Pigram
  • 1,400
  • 3
  • 25
  • 65
0
votes
1 answer

Java applet not displaying in browser

Hı, I have a java applet. On Eclıpse ıt runs perfectly and displays all the swing items but when I embed it to the html, the applet does not display or it displays just a few of the items in the browser. Below is my code. Can somebody please help me…
dramaticlook
  • 653
  • 1
  • 12
  • 39
0
votes
0 answers

JApplet keybinding printscreen

My objective is to have the printscreen key trigger my application to close (ideally before it can actually copy to clipboard, but not important) I have other keybindings working- but I cannot figure out how to trigger printscreen. In the below…
woodlumhoodlum
  • 462
  • 3
  • 10
  • 24
0
votes
0 answers

Reading files in JApplet multiple times

I don't think it is an issue with my code so I will just explain the situation and hopefully it can be cleared up. I have a JApplet that is reading a .txt file with the names of all the players. When I create a player this file is updated to add the…
0
votes
2 answers

Change variables in one class from another class

FNAKLNFDKA.java import java.awt.*; import javax.swing.*; public class GraphApplet extends JApplet{ private static final long serialVersionUID = 1L; public static Graphics p; public void init(){ SwingUtilities.invokeLater(new Runnable() { …
MBC870
  • 373
  • 3
  • 8
  • 16
0
votes
1 answer

Cant read in text file using java applet

Im having an issue when im trying to read in a text file while using a JApplet and Java Web Start, basically I have a file with a users data in it which I wish to read in. The text file is stored on the web server. Here is the…
Matthew Pigram
  • 1,400
  • 3
  • 25
  • 65
0
votes
1 answer

Using ActionListener to update variables in other classes

I am designing an applet so it allows a user to plot a graph. I am having problems to construct a code which from another file (ControlsB.java) the variables in the Graph.java file are updated. Below is my code: import java.awt.*; import…
MBC870
  • 373
  • 3
  • 8
  • 16
0
votes
1 answer

JApplet loading screen while drawing

How can I put a loading screen that would be visible in java applet until the graph is drawn? My code: public class Test extends JApplet { GrappaPanel gp = null; JPanel jpanel = null; JEditorPane dataDisplayer = null; Graph graph =…
M T
  • 968
  • 1
  • 8
  • 24
0
votes
1 answer

Reinitialise applet on the click of a button

How to reinitialize full java applet on the click of a button (JButton) from with in a applet? I want the applet to behave like as it behaves first time. I have acquired scanner in my applet, but I don't know the function to release that. Whereas…
Ashish Kataria
  • 520
  • 3
  • 11
  • 31
0
votes
1 answer

Java applet open network sockets?

So i made this simple JApplet and tried to open a socket and write to it, but i got an exception saying i don't have permission??? So then i looked at this: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html I've got the…
Mohammad Adib
  • 788
  • 6
  • 19
  • 39
0
votes
1 answer

how to stop buffering(blinking ) in my applet

I am making a card game with a java applet. I have a class that extends JApplet. Now I am trying to draw 104 images on applet, but when I drag one image and move, my entire applet is blinking. Throughout the execution of my program, I am calling the…
Gopal
  • 47
  • 1
  • 5
0
votes
1 answer

adding JPanel On JApplet and writing HTML page to run it

I have a java applet and I want to add a pre-designed Jpanel on my jpanel as a form. My Jpanel form is in another java file called MyForm.java. my JavaApplet class code is: public class JavaApplet extends JApplet{ @Override public void…
sajad
  • 2,094
  • 11
  • 32
  • 52
0
votes
1 answer

Keep getting "java.security.AccessControlException access denied:" error

So I have this applet which loads images from a directory but it looks like Java is giving me some permission issues. I am a newbie when it comes to making applets on the web and tried to find solutions but most involve either command prompt or…
0
votes
0 answers

How to open XML with XSL file in Applet?

I have XML and XSL file and I have also declared XSL in XML file. So I want to open XML file in Java JApplet. So If possible any component is there in Java? ..
Rishi
  • 95
  • 2
  • 9