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

Java Applet Polygon array

I have a functional program that gathers coordinates with each mouse click and then draws a polygon using those coordinates. I added a feature so that when you are done drawing your polygon and it is filled in, you can then erase the screen and…
user1701856
  • 71
  • 1
  • 7
-2
votes
1 answer

When running on Eclipse i can see results of paintComponent, but not on HTML

public class Test extends JApplet { public void init () { SwingUtilities.invokeLater(new Runnable() { public void run() { createGUI(); } }); } public void createGUI() { …
Ofek Ron
  • 8,354
  • 13
  • 55
  • 103
-2
votes
1 answer

Swing application to applet

I have made a basic swing application to input data into MySQL server. It is for some reason not accessing the driver to connect to the database. Here is the code. Thanks in advance for all the answers import javax.swing.*; import…
-2
votes
1 answer

How to add JLabel to Japplet with set x,y coordinates

Possible Duplicate: How to find if image is clicked in JApplet? Im figuring out the easiest way to do my game, and I think thats using a label with a mouse listener. The problem is I don't know how to add it to the applet with set, adjustable…
Ryley Matos
  • 137
  • 2
  • 2
  • 3
-3
votes
2 answers

My Applet will not run in a browser

Can anyone help me out. I've written a program that controls the heating system in an imaginery house, an applet actually. it runs fine in netbeans but i cant get it to run as an applet in a browser, can anyone help me out please, I linked to a zip…
kev670
  • 810
  • 2
  • 18
  • 37
-3
votes
1 answer

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. And you can enter a number and where it is placed in…
-3
votes
1 answer

how to declare the winning card from the hands of the 2 players. Need help please

Ok, sorry for my English and for the post if it's not posted correctly. I'll try to explain this. The game is based on a card game call War. they put down there cards and the highest card win's. If there's a tie, they keep playing until the…
Marty
  • 37
  • 5
-3
votes
1 answer

Assistance please! Need applet proofreading

I really cannot figure out what I'm doing wrong- The Option1 code just shows a white empty text field and Option 2 just says it's not initialized... I could really use some guidance. Thanks in advance import java.awt.*; import javax.swing.*; import…
-4
votes
1 answer

Declare an Instance Variable to Reference an Object

So we are making an Avatar for a game and we have already created the Avatar as an Avatar class file. Our problem is that in our class file Game we are having difficulty declaring Avatar as an instance variable. The code is as follows: public…
-4
votes
1 answer

Does this work for anyone?

This is the primary class import java.awt.*; import java.applet.*; import javax.swing.*; import java.net.*; import java.awt.event.*; public class demo_image extends JApplet { private Image offscreen; private double wildcat_x; private int…
Svinthe
  • 63
  • 1
  • 10
-4
votes
1 answer

Pinball in Java

actually I have a code which I think it's complete , but i don't know how to run it on Eclipse... that's a pinball game on java and i want to practice from this code : http://www.cs.cityu.edu.hk/~cssamk/pinball/index.html in all classes it shows…
Amir Hossein
  • 249
  • 2
  • 4
  • 14
-5
votes
2 answers

How do I add a point to JApplet?

I am trying to add a point into my JApplet, and have been searching google and yahoo for an answer to no avail. Whenever I do public class Chaos { Point p = new Point(75, 25); public void frame() { JApplet applet = new JApplet …
-6
votes
1 answer

How to convert file path in my computer to codebase?

I want to upload a JApplet in my blog but I don't know how to convert file path to codebase. (codebase=???). Does anyone know how? eg. Where does D:/folder/file.class go after http://nameofyourblog.blogspot.com/ in codebase?
User7829300192
  • 128
  • 1
  • 8
1 2 3
48
49