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

Using external Jar dependency in Eclipse with Non-Runnable Jar

I am making a Jar file in Eclipse to run an Applet, and the program uses an external jar file (jxl.jar). When I run the applet, it tells me it can't find the jxl files I am trying to use. When I make the jar file, I right click the project and…
CodeGuy
  • 28,427
  • 76
  • 200
  • 317
-1
votes
2 answers

Remove default applet menu

I'm working on a JApplet, but I want a custom menu. When I insert this menu, I still get the applet menu and below my own menu. package multiformat; import ui.*; import javax.swing.*; import java.awt.*; public class CalculatorMVC extends…
ProCx
  • 199
  • 5
  • 18
-1
votes
2 answers

Java Applet : inetAddress.getHostName() throws NullPointerException

I am trying to get the hostname. inetAddress.getHostName() works in Java Applications, but in the applet, it throws java.lang.NullPointerException. How can I get Host-Name in an applet?
Anirudh Ramanathan
  • 46,179
  • 22
  • 132
  • 191
-1
votes
3 answers

get an applet into the web browser

I have designed an applet that is shown in a separate java window (and a blank web browser window also appears) but i'd like it to be displayed in the web browser. I have no clue about it. Should I change the JFrame or is it different stuff? My code…
sutil
  • 1
-1
votes
2 answers

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 me to change the font. I found out that there are…
Rig
  • 7
  • 4
-1
votes
1 answer

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 pretty sure that it is due to not having a…
Hasapin
  • 1
  • 2
-1
votes
1 answer

Can you have classes outside the Applet/JApplet class in a Java applet?

Can you have classes outside the Applet/JApplet class in a Java applet?
-1
votes
1 answer

Undefined method/Cannot be resolved

I'm in the process of creating a simple game and I stumbled upon an error I can't resolve. When trying to import/draw an image with Graphics an error pops up: Multiple markers at this line - getCenterX cannot be resolved or is not a field -…
user6258402
-1
votes
1 answer

Array Index Works in JApplet but not JFrame

I am trying to create an integral calculator that displays a random polynomial, a random interval, and the definite integral of that polynomial of the random interval. I previously wrote the code with the end goal of displaying the answer on a…
awdreg
  • 39
  • 1
  • 8
-1
votes
1 answer

Adding a listener to a JCheckBox completely clears JApplet

I have a JApplet program with multiple classes. RegPanel,WorkshopPanel, CnferenceGUI, CnferenceHandler and CnferenceClient. Basically RegPanel and WorkShop panel are added to the CnferenceGUI, which also creates and adds a couple small panels. The…
Stan Harris
  • 15
  • 1
  • 4
-1
votes
1 answer

Clearing TextFields if content is not an integer [JApplet]

Im trying to create a simple RGM model that changes the text colour to the colour set by the user using three TextFields (Red,Green,Blue). Once i input numbers into the three fields then press a "Create" button, the colour of the text will change to…
Volken
  • 255
  • 1
  • 4
  • 23
-1
votes
1 answer

Go through excel sheet and display information on html

My task is to create a simple html that will take all the information from an excel sheet and display it into a html page. Not really that important for now but in the future, make the change live. So if the excel document gets updated, the html…
user3728320
  • 153
  • 1
  • 2
  • 6
-1
votes
2 answers

How do I run a JApplet from itself?

Basically I need to do this for school, Ive been through all kinds of posts about this and everyone just says "why'd you wanna do that?" and don't answer. So a lot of people need help on this and your answer could get a lot of likes someday So…
Tintinabulator Zea
  • 2,617
  • 5
  • 18
  • 32
-1
votes
1 answer

JList item deselected after clicking a JButton

What I tried is to select an item from a JList, click a JButton (optionally also click a JRadioButton), and then the value of selected item will be added to another JList. The problem is that after I clicked the JButton or JRadioButton, the item in…
hanabi_noir
  • 197
  • 1
  • 1
  • 15
-1
votes
1 answer

Java can't find main class in JApplet

I wrote a JApplet program in Java. Now when I Run the program it tells me that the class wasn't found in project. Here is the code I wrote: package assignment1q6.pkg1; import javax.swing.JApplet; import java.awt.Graphics; public class…
Evert Van Eeden
  • 17
  • 1
  • 1
  • 6