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

How to make a layout for JApplet

I am creating a simple Sudoku game. Since this is my first "big" i want to do everything myself (without the NetBeans interface designer that i normally use to make GUIs). So for the GUI i created a class that extends JApplet and i drew a simple…
Squeazer
  • 1,234
  • 1
  • 14
  • 33
2
votes
2 answers

Java JApplet will not show in any browser anymore

Applet used to work, but now it will not. I am not very experienced with GUI's much less Applets. Here is the GUI code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; public class StockGUI…
01somebody
  • 45
  • 5
2
votes
1 answer

Java Applet Drag and Drop does not work on Mac

My Java applet for File Uploader, the drag and drop does not work in any of the browsers in Mac. Anyone know what is wrong? I heard that Mac does not support this anymore, but I can't seem to find which version of Mac and Browser to start stopping…
Harts
  • 4,023
  • 9
  • 54
  • 93
2
votes
3 answers

How to make Java application as small as possible?

I am building a JApplet that has to be embedded on a 64KB partition. So far I have enough space, but I am wondering if you can give me some great tips on how to make my jar file smaller. I am reusing code as much as possible and compressing jar file…
jadrijan
  • 1,438
  • 4
  • 31
  • 48
2
votes
1 answer

Java - Pause initComponents from running?

I am building a JApplet in NetBeans. When the application is initially ran it needs to download some files onto local PC first for it to properly work. Once it is done downloading these files than the GUI should be drawn. How do I pause the JApplet…
jadrijan
  • 1,438
  • 4
  • 31
  • 48
2
votes
3 answers

How can I display an image in the Applet?

I have an image and I want to display it in the applet, The problem is the image wont display. Is there something wrong with my code? Thanks... Here's my code : import java.applet.Applet; import java.awt.*; public class LastAirBender extends…
papski
  • 1,241
  • 5
  • 28
  • 52
2
votes
2 answers

Hide JWindow when applet not visible?

I create a JWindow in my applet to display an update process, and I set the owner to the applet parent. My problem is that the JWindow is visible in all the tabs in my browser and not just the one containing my applet. Is it possible to add a…
thomas.fogh
  • 369
  • 1
  • 4
  • 17
2
votes
1 answer

openning http connection behind proxy which requires authentication but does not return 407

Our applet is behind Microsoft ISA Server which has integrated proxy authentication.Isa Proxy server returns http 405(NOT 407) for connections which has no authentication credentials on it.There for my java.net.Authenticator class does not get…
e13420xx
  • 718
  • 1
  • 8
  • 26
2
votes
2 answers

How to disable http caching in applet

How can i disable http caching of all my http connections in my japplet? I dont want any of my http (request/response)to be cached.Regardless of the user settings in control panel\java\Temporary File Settings. Applet is signed and compiled with…
e13420xx
  • 718
  • 1
  • 8
  • 26
2
votes
2 answers

Java applet Error ... What is wrong?

Java applet code package M257Applet import java.applet.*; import javax.swing.*; import java.awt.*; public class HellowApplet extends JApplet { public void init(){ Container cp = getContentPane(); JLabel lb = new…
Prince
  • 111
  • 1
  • 1
  • 12
2
votes
2 answers

JPopupMenu not appearing?

I have a Java applet that will consist of several popup menus that the user will have to interact with. However, the JPopupMenu won't show up when added. Here is my code: public class Parser extends JApplet implements ActionListener { private…
Jumhyn
  • 6,687
  • 9
  • 48
  • 76
2
votes
0 answers

JPanel cannot called repaint in synchronized

I tried to call repaint() inside while loop to change the position of text, and after the thread end call the second thread to perform another action. The problem I found is after making first thread wait to end and call the second thread the…
2
votes
2 answers

Finding the width and height of a JApplet

I am looking to find the width and height of a JApplet. I have tried different things and have looked for an answer but haven't found one yet. This below is the main part of the code: import java.awt.Color; import java.awt.event.ActionEvent; import…
0xCursor
  • 2,242
  • 4
  • 15
  • 33
2
votes
1 answer

application blocked for security reason.

While trying to self teach java I have stumbled upon a problem. I have a simple GUI applet which I am trying to run. I am using java 8 version 66. At runtime I get an 'application blocked by Java security' when I try to preview it in a browser…
XY-bane
  • 31
  • 1
  • 7
2
votes
1 answer

Listening to input from another class

So I have a class that uses a KeyListner, when various events occur various boolean become true. Now this class has a constructor, an instance of this class is called within an JApplet. Now everything works except the Keylistner. When the applet is…
recurf
  • 237
  • 4
  • 16