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

Repaint method repainting every time

I am having a grid of buttons and I want to draw a line between any two clicked buttons and that line should stay when i press next set of buttons.To do so I made following paint and init method in applet and also override the update method because…
prtyush
  • 157
  • 1
  • 7
-1
votes
2 answers

Distinguish Web Browsers From Each Other With Javascript Document Element

function init() { // Microsoft Internet Explorer alert("test-1"); if (document.all) { alert("test-2"); document.all.loading.style.visibility="hidden"; …
Dvlpr
  • 453
  • 3
  • 8
  • 20
-1
votes
1 answer

Save data in separate objects from same class

So I'm trying to make a boardgame where I have a player class. In this class I want to save different things, such as the position on the board, amount of money etc. Problem is, when I try to make two players walk across the board. It adds up both…
MvdBeukel
  • 1
  • 2
-1
votes
2 answers

How to make my snowman wave his hands (drawline) using button in applet

You Can run this program ... but , i have a problems in understanding some of the codes in Graphics class .. I don't blame anyone for this but this is a part of a lab exercise .. i need to make my snowman wave his (g.drawline) hands . using a…
mds
  • 13
  • 5
-1
votes
1 answer

how to write first program of applet in Netbeans with browser run?

How to write a Java Applet program in Netbeans IDE. I want to write a Java Applet program in Netbeans with run on browser. Please help me Thanks
user3315464
-1
votes
1 answer

How do i make my images not square?

My friend and i are very new to java programming and were trying to make a simple game. were having problems making our images transparent. Also the images streak across when we move them. Any help would be verymuch. package keelbird; …
-1
votes
1 answer

No package shown in my JApplet?

I am trying to set up NetBeans for on my personal laptop for Java applications. I am a beginner programmer and I'm trying to figure out all the basics. In this application I'm trying to make a JApplet. So I open a Java Class Library and add a new…
jordano7
  • 1
  • 1
-1
votes
2 answers

Add background image into applet frame

I am trying to add a background image to my applet, but don't know how to add. Here is my code. public class SAMmain extends JApplet{ public JMenuBar mbar=new JMenuBar(); public JMenu newStudent,viewtudent,markAttendence; public…
-1
votes
2 answers

Loop in a JApplet animation Java

import java.awt.Graphics; import javax.swing.JApplet; import javax.swing.JPanel; public class Circle extends JPanel { int x = 75; int y = 100; int diameter = 50; public void setAnimationY(int y) { this.y = y; } …
-1
votes
1 answer

Java Applet don't print but store into database

I am writing a Java Applet which I need users to run my code so that I can collect running result from users. I also need to store all the results from users into a database afterwards. My question is, I don't know how to acheieve the function so…
Aaron Liu
  • 151
  • 8
  • 18
-1
votes
2 answers

JApplet NullPointerException

I programmed a GUI to display the provinces and territories of Canada. It all seemed to work well, but every time I compiled the program, I'm having an issue with NullPointerException, but not when I compile, only when I try to open the web browser.…
iamgod
  • 63
  • 2
  • 8
-1
votes
1 answer

Java applet with external jar cannot display whole apple application

I use ANTLR make a small java applet. I can run it from eclipse without any problem, but once i put it on the web-page. Applet cannot display any stuff. such as button never is displayed until I use mouse over it.
Han Bing
  • 91
  • 1
  • 1
  • 4
-1
votes
1 answer

Java App - Start form applet appears after JOptionPane event on whichever form

I'm new here and not so much familiar with applets. I searched the site and many other forums for answer but i found nothing. I have made an application in Java which starts with an applet login form, and continues with JFrame subforms which are…
Christina Mayer
  • 1
  • 1
  • 1
  • 1
-1
votes
2 answers

Troubles with a piechart applet

Alright the deal is I am trying to use the drawPie method to create my pie chart in an applet. After attempting google searches I find multiple tutorials that explain part of the process but not all of it. While trying to knit together partial…
KaitoX
  • 5
  • 1
  • 1
  • 2
-1
votes
1 answer

Dispose Java Applet After closing a DIalog

Is there anyway to dispose Java Applet after closing Jquery UI dialog?
Alaa Osta
  • 4,249
  • 6
  • 24
  • 28