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
4
votes
2 answers

Guide on creating a Java Applet , Printing without prompt

Well I have created a web-based POS to take order. My question is how do I create a Java-Applet; Shows the HTML page & a Print button Print Order without prompting(no dialogue box) Additional Information : It works like this. The waiter will key…
Boon Ping
  • 43
  • 1
  • 5
4
votes
2 answers

jar file with bouncycastle libraries: NoClassDefFoundError

I'm struggling to get my jar file working from a web browser. When I run the applet from Eclipse everything is OK, but from the browser I get a NoClassDefFoundError : Exception: java.lang.RuntimeException: java.lang.NoClassDefFoundError:…
renard
  • 1,368
  • 6
  • 20
  • 40
4
votes
2 answers

How to hide JDialog from JApplet when user switch browser tab?

Problem: user starts long operation from applet; JDialog with progress bar is displayed. User open/switch to another browser tab - JDialog is still displayed (and annoys user). JDialog should be hidden when user switch to another tab; and displayed…
bigGuy
  • 1,732
  • 1
  • 22
  • 37
4
votes
4 answers

Applet not appearing full

I just created an applet public class HomeApplet extends JApplet { private static final long serialVersionUID = -7650916407386219367L; //Called when this applet is loaded into the browser. public void init() { //Execute a job…
livingoff
  • 55
  • 6
4
votes
3 answers

Capturing video from multiple usb cams and showing in a UI side by side using JAVA + Java applet

I have to make 2 applets which will run in a TOMCAT like server and when I access the webpage[HTML page] at a client side, I have 2 cameras attached to that client PC and I want to show the videos from both cameras on the 2 web pages at the client…
Tattu
  • 41
  • 2
4
votes
3 answers

Applet/JNLP on Java 11 migration

I have an application that runs under Java/JNLP applet and I would like to migrate to Java 11. As you know the applets and JNLP will disappear from Java 11. The goal is to keep my old code and remove the packages that contain the applets, is it…
Nadir Fouka
  • 452
  • 4
  • 14
4
votes
1 answer

ClassNotFoundException Java Applet

I get the ClassNotFoundException error when I make my html file with the code and jar file. Not sure why. Here's what I have: Test Applet

Test…

Sticky
  • 3,671
  • 5
  • 34
  • 58
4
votes
1 answer

How to visualize a neo4j graph

I want to visualize a neo4j embedded graph within my JAVA application. I have read the Max De Marzi's Graph Visualization Blog but I could not find anything in JAVA but only ruby and C++ May you help me to find a guide to install something easy to…
QGA
  • 3,114
  • 7
  • 39
  • 62
4
votes
4 answers

java.security.AccessControlException: access denied ("java.net.SocketPermission" "smtp.gmail.com" "resolve")

I am using GlassFish Server 3.1 and the Java mail Api 1.4.5. Scenario: I have an applet, that when clicked it sends an email message. Send the mail works perfectly on Netbeans AppletViewer, but it turns into hell when added to the browser and…
Chayemor
  • 3,577
  • 4
  • 31
  • 54
4
votes
1 answer

Swing menus Java 7 mac osx

I've been testing my Swing application on mac os x which runs on an applet. When I run this applet in the browser, I noticed that the mouse-over on the JMenus/JMenuItems do not work correctly. Here is a small program to reproduce the…
Luis Gonçalves
  • 249
  • 2
  • 10
4
votes
4 answers

ActionListener between two classes

import javax.swing.*; class Labels extends JFrame{ JPanel pnl = new JPanel(); ImageIcon duke = new ImageIcon("duke.png"); JLabel lbl1 = new JLabel(duke); JLabel lbl2 = new JLabel("Duke is the friendly mascot of Java technology."); JLabel lbl3 =…
MBC870
  • 373
  • 3
  • 8
  • 16
4
votes
2 answers

How to view paragraph symbol in JTextPane using Java Code?

How can I view a pilcrow, ¶, in a JTextPane using Java? Please adivise me or send me any sample code.
Rishi
  • 95
  • 2
  • 9
3
votes
5 answers

setBackground statement not working?

import javax.swing.JApplet; import java.awt.*; public class Snowman extends JApplet { //--------------------------------------------- // Draws a snowman. //--------------------------------------------- public void paint (Graphics page) { final…
Enigmatic Wang
  • 725
  • 2
  • 8
  • 13
3
votes
3 answers

Java - Applet simply not displaying?

Okay, so I did a little applet tutorial, and I read that the init() method is required for an applet to run. And it does. At least in my IDE (Eclipse). The Applet Viewer has no problems running my applet, when I try to do the tag in HTML,…
user569322
3
votes
1 answer

Adding image in JApplet

ImageIcon icon= new ImageIcon("a.gif"); JLabel jLabel1=new JLabel(icon); jLabel1.setVisible(true); card1.add(jLabel1); I am a newbie to Java and I am facing a problem to add image in a panel in applet. My image is in the same folder. My applet is…
abc
  • 315
  • 2
  • 5
  • 12
1
2
3
48 49