12 Topics
|
|
Hello everyone, I'm having some issues with my rock, paper, scissors JApplet program. Of course I have it "extends Applets" from the beginning of my class and I realized that this wasn't the same as JApplet. After I changed "Applet" to "JApplet", when I ran it, it doesn't look like … |
|
i am creating a rect in paint method. and i am trying to move it to its right by 1 px in loop. but the problem is its not going inside the run method. any idea why? import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.JApplet; public class main extends JApplet … |
|
I have two classes: (1) **Class A**, which extends JApplet, implements Runnable + some Listener stuff (2) **Class B**, which has a main method and is not an applet My question is, how do I create **class A** with **class B**'s main method? Is this even possible? What I'm doing … |
|
I have trouble trying to create a clock java program that asks for user's input for hours and minutes. When it asks the user for their input, the clock program is suppose to set it to that time using the hour hand and the minute hand, but for some reason … |
|
Hey all, I have a JApplet that runs in browser and I can't get it to create a new JFrame popup when a button is clicked. It works fine in my IDE (Eclipse) but not when I upload it. Here's the code for the JFrame I'm trying to create: import … |
|
Is it possible to get a user's mac address when he visits my website through a JApplet? |
|
Hello again everyone, on my recent thread about my rock, paper, scissors program, I had trouble running it from Applet to JApplet and that problem was solved. So far, I've added many functions for the program such as menus, checking your score, resetting the score, and setting the number of … |
|
Im having problems with my code. :( the code should. the submenu for my menu should be on a radio button type. here's my first code: [CODE] public ... { //for background JMenuItem image = new JMenuItem("Images"); JMenuItem music = new JMenuItem("Music"); //submenu of music JRadioButtonMenuItem play = new JRadioButtonMenuItem("Play"); … |
|
Hey guys for some reason my code displays in the applet viewer in jgrasp and in eclipse, but for some reason it wont display via an html file in any browser. Any Ideas? Thanks in advance. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.applet.*; public class FamilyTreeTabbedPane extends JApplet implements … |
|
In class my teacher ran a program similar to this one. When I attempt to run this from home I get a message saying "No main classes found". I know there should be a main in the program but he ran a similar program without it. Just trying to get … |
|
Hi guys.. I am having some problem with snake game project using JAVA Applet. I already have the sour code of a snake game from my friends, but I failed to make it functions probably under a JApplet. I need to do a similiar UI like click a start button. … |
|
Hey, I have a question about Java Applets. I wrote a small applet(just one file) and could run it in my web browser, by making this html file: [code=html] <APPLET CODE="MyApplet.class" WIDTH=400 HEIGHT=400> </APPLET> [/code] And it worked just fine. I am going to make a bigger project and I … |
The End.