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.
734
questions
0
votes
1
answer
38
views
In my Netbeans 8.1, <applet? Tag is not changing the size of the applet , just showing in the same standard size? What should I do?
Please tell why I always getting the same size of the applet?
In my Netbeans 8.1, <applet? Tag is not changing the size of the applet , just showing in the same standard size?
What should I do?
...
0
votes
0
answers
12
views
Error with public void paint (Graphics g)'s in JApplet slideshow [duplicate]
I am trying to do a slideshow in a JApplet and I keep getting an error on the "public void paint (Graphics g)'s." I know its outdated but its for a class in high school. This is my first time doing ...
1
vote
0
answers
52
views
Replacement of applet which takes print from barcode printer
We are using Applet to take print from bar code printer.Since ,newer versions has stopped supporting applets i need to replace Applet with some other way to print. need help how to proceed.
For print ...
0
votes
2
answers
216
views
Creating a Java Applet to Launch in Browser
I am working on a homework assignment that is requiring me to create a basic applet that runs in a browser. I already know that the applets have been deprecated, so I know that this probably will not ...
-1
votes
2
answers
786
views
Having A Problem In Changing Font in java
I want to put a custom font using drawString method in my applet the problem is that it doesn't change the font even I do it properly. I am still student so please bare at me for my code. Please help ...
0
votes
2
answers
238
views
Graphics and Graphics 2D in java
I am having a problem changing the color of the diamond I had created when I am using methods in java. I don't know how to inherit or to correct it by using methods. I just want it to become object ...
1
vote
0
answers
191
views
Class-Path attribute within Manifest causes annoying FileNotFoundException when loaded within applet
I have a java applet (I know ancient technology, but I can't change this at the moment!) that uses gradle to pull in all dependencies. One of the dependents is jaxws-rt-2.2.8.jar. This jar file has ...
0
votes
1
answer
49
views
Java playing the same audio over the another one
I am making a game which has mouse over sound in the menu. However the 2nd time when the sound is played and the first one didn't finished yet the 2nd cuts the first. Is there any way to fix that ...
0
votes
2
answers
20
views
Cannot get JApplet to work. Everytime I run the program I get an error
Every time I run my code I get this error listed at the top of the code.
I had the program without the color changing working fine, but ever since I added in the ability to change the color of the ...
0
votes
0
answers
38
views
JApplet Restart adds duplicates of components
I've been testing my JApplets and they have been working fine. I discovered the Applet menu that always loads and I wanted to test out its menu items. When I tried the Restart menu item, I realized ...
0
votes
1
answer
368
views
Start: applet not initialized error. How do I resolve this issue?
I was trying to make an applet as a project for school but encountered this error I had never seen before. Any advice would be extremely welcome, I've struggled for hours to no avail. Also, this is my ...
0
votes
0
answers
233
views
Digital persona Applet not loading lib .jar
I have made an applet for capturing finger prints but when I launch in on IE it gives this error:
java.lang.noclassdeffounderror: com/digitalpersona/onetouch/capture/event/DPFPDataListener
This how ...
0
votes
0
answers
298
views
Why can't I run a JApplet in IntelliJ?
I am learning Java from the Oracle documentation page: https://docs.oracle.com/javase/tutorial/reallybigindex.html
I am using Intellij on Linux Mint and I had no problems until I got to JApplets. ...
0
votes
0
answers
210
views
Java applet not launching using JNLP when both 32bit and 64bit java version is installed?
i am trying to launch a java applet using a jnlp file. The java application can run only using 64bit java. In the JNLP file i have made
<resources arch="amd64">
So that the applet will use ...
0
votes
0
answers
133
views
Applet class is not loading in a JSP
I'm working on maven web application with JSP and Servlets. I have a href which has a applet class call which loads my applet success fully from certain Servlet but on my windows only. Now I want to ...
0
votes
1
answer
95
views
Calling repaint of an inner class does not trigger paint() actually does nothing
I'm not too familiar with JApplet
and paint and repaint(). Any help is appreciated.
I have an outside class "A" that extends JApplet and draws somestuff in its paint()
I also have a private class "B"...
2
votes
2
answers
668
views
How to run applet with policy permissions in Java to read the MAC address
I'm trying to develop an applet in NetBeans which can read the MAC address.
So here is my directory structure
Here is my UPDATED Code
MacAddrApplet.java
import java.awt.Graphics;
import java.net....
1
vote
1
answer
925
views
We are using the Java Applet technology in our product. Is there an alternative to Oracle's Java Web Plugin provided by another vendor?
Oracle is planning to make its JRE paid from Jan 2019 onwards. We need to find another vendor that supplies the Java Web plugin for free. Do any of the OpenJDK vendors provide this plugin?
Oracle ...
0
votes
1
answer
439
views
Embedding JApplet into a Google Chrome web page (HTML 5)
I have seen quite a few posts and tutorials on how to embed Java applets onto a web page, but most are either going with the obsolete <applet> tags or suggesting Java Web Start.
I have tried &...
0
votes
2
answers
349
views
Add or Remove JTextPane inside Jpanel onclick of JToggle Button
I have one JDialog in which there is one Main Jpanel called "dialogPane".
This JPanel "dialogPane" has below 2 JPanels
ContentPanel which contains JTextArea
buttonBar which contains progress bar and ...
4
votes
3
answers
4k
views
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 ...
0
votes
1
answer
50
views
Extending JFrame Creates New JFrame Object
I've been creating a fairly complex applet using JFrames extending other JFrames on NetBeans and I'm having issues with accessing data from previous JFrame screens. Looking at the diagram below:
My ...
1
vote
0
answers
31
views
My code doesn't execute on start
I need to draw formulas after an applet has started, so I try to do the next:
public class SearchIdeaApplet extends JApplet {
private JPanel mRootPanel;
private JButton mPrevButton;
...
0
votes
0
answers
43
views
Java applet doesn't show FXML form
I have a Java applet:
public abstract class FXApplet extends JApplet {
/**
* Initializes a Swing thread
*/
@Override
public void init() {
SwingUtilities.invokeLater(...
0
votes
0
answers
8
views
In java g.drawString does not print in applet while using Container [duplicate]
I am using container to display buttons and a combo box. Later to display contents from a database i am using g.drawString but it doesn't display anything in the applet. Here is my code
import java....
0
votes
2
answers
128
views
JAVA: background rendeing over the player?
I'm building my first very basic game in JAVA without using any other external libraries.
The problem I got is
You can see that the background is rendered over player how can I fix that
The player ...
1
vote
1
answer
57
views
How to get / use bufferstrategy in a Java applet?
I was wondering how I would use something like a bufferstrategy in a Java Applet.
I want to draw something like an image
gfx.drawImage(frame, 0, 0, width, height, null);
to my applet but I am ...
0
votes
1
answer
35
views
ColorBox without JApplet
i am currently working on app in which boxes change colors randomly. However, I don't know how to get rid of JApplet and write it in the other way. BTW it's a code from 'Thinking in java'. I would ...
0
votes
1
answer
2k
views
Failed to find byte code for javax
After updating Android Studio, I'm facing these errors:
Failed to find bytecode for javax/swing/JApplet
Does someone knows what the problem is?
0
votes
0
answers
36
views
JButton used to begin animation not updating
I have a problem in that when the program finishes drawing the GUI, I want to have a button which will collect information from the other Jobjects (JTextFields, Sliders etc.) and use it to dynamically ...
0
votes
0
answers
52
views
JApplet, client/server program
I am trying to create a a simple client/server program within a JApplet.
When I run the program a connection is made, however the applet does not start and on the JApplet it says 'applet loaded' but ...
1
vote
1
answer
653
views
trying to make a star using sine and cosine
so I'm trying to make a star for a program where I am going to draw a flag. I'm pretty much limited to the Java Applet class. since the process should be the same for every star with a different ...
1
vote
0
answers
25
views
(netbeans) (JApplet) >> JApplet simply doesn't show
i wrote this code (MVC).... there are:
package MAIN, files (Main.java)
package CONTROL, files (Control.java)
package VISTAS, files (Proceso.java) "views"
in CONTROL.Control:
package CONTROL;...
0
votes
0
answers
42
views
Launch JavaFx application from Swing JApplet class [duplicate]
I have to launch a JavaFx application on a click of a JMenuItem of a tree node which extends JApplet class and runs on Swing JFrame window.
I had gone through the tutorials on JavaFx in Swing ...
2
votes
0
answers
76
views
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 ...
0
votes
0
answers
203
views
how to embed a JAPPLET in html?
I was trying to embed a JApplet class using same tags in HTML as for applet. But it does not work.
It is a stopwatch program. I want to run it in HTML and further want to upload all files on a free ...
0
votes
0
answers
53
views
How do I embed an adobe flash file or html inside of a java applet
I want to run a flash game or html5 game inside of a java applet.
How would I do such a thing?
0
votes
1
answer
316
views
Java Applet Using Radio Buttons to Switch Between Classes
Background Information:
This is a Java project for Undergraduate Research at my school. I will be presenting this program on Sunday 4/23/2017. I am stuck on a specific part of my program. This ...
-1
votes
1
answer
836
views
Java jar in HTML?
I tryed using a Java Applet, but I didn't work, I supposed that it wasn't working because it required some files and libraries that weren't inside the .jar but outside in the same folder. So I looked ...
0
votes
0
answers
50
views
Applet didn't work in browser
My applet didn't work in browser.
When i try to open this html in firefox, i saw "ClassNotFOundException, applet.NotHelloWord.class"
I spent too much time with this useless application
My ...
0
votes
0
answers
165
views
Add JApplet to JFrame
I'm attempting to make a drawing application kind of like Microsoft Paint within Bluej, and I'm having a problem with figuring out how to add my JApplet to the JFrame. I've looked at other questions ...
0
votes
2
answers
38
views
Java Applet Backgroun won't change
So my problem is simple when I try to change the background showing below I just doesn't change I tried to put the same command into the paint void still not working what am I doing wrong? Thank for ...
0
votes
0
answers
344
views
Update (reload?) a JEditorPane
I have MyApplet extending JApplet with a JEditorPane centralPane.
package view;
import java.awt.HeadlessException;
import javax.swing.JApplet;
import javax.swing.JEditorPane;
import javax.swing....
0
votes
0
answers
35
views
Program cannot find class when ran [duplicate]
I'm creating a program that will create a series of rectangles. When I run the program, I get the error that "Rectangle1 class wasn't found in Problem_3_1 Project. I am using NetBeans 8.1. Here is my ...
-3
votes
1
answer
496
views
Setting up a highscore by using arrays
So our teacher told us to create a JApplet with a highscore.
He wanted us to use an Arraylist which contains 10 integer values. If u press a JButton these values are getting displayed in a JLabel. ...
0
votes
0
answers
48
views
japplet to servlet communication, servlet not reached
I'm trying to send post data from my japplet to my servlet "Connexion" but the output that i placed in my servlet init method and processRequest method are never displayed in my console.
Here is the ...
0
votes
2
answers
199
views
How to show JApplet in a JSP page
I am using:
Eclipse for Java EE developers
JSP
JDK1.8.0
Dynamic Web Project
I want to show an applet in my jsp page, but I am unsuccessful.
The issue is: when I run the page index.jsp page it ...
0
votes
0
answers
784
views
how to convert java project into java ee project
I have a java project that contains a JFrame, I need to convert this project into eclipse for java ee project, and convert this JFrame into JApplet, so that I can easily embed the JApplet in jsp code. ...
-1
votes
1
answer
470
views
How to stop an applet from blinking?
I have been trying to convert one of my games into an Applet but since it is my first time using an Applet I ran into a problem. Basically whenever I open the game the screen start blinking. I'm ...
0
votes
0
answers
28
views
this is my first applet. but when i run is using either eclipse or web browser all i get is an empty applet screen. what went wrong?
import java.util.*;
import java.awt.*;
import javax.swing.*;
//basic applet
public class test2 extends JApplet
{
//print method
public void print(Graphics g)
{
super.paint(g);
...