12 Topics

Member Avatar for
Member Avatar for RaigaX9

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 …

Member Avatar for mic0280
0
569
Member Avatar for hwoarang69

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 …

Member Avatar for zeroliken
0
156
Member Avatar for kedxu

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 …

Member Avatar for kedxu
0
246
Member Avatar for xGiraffe

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 …

Member Avatar for JamesCherrill
0
428
Member Avatar for Kremlin

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 …

Member Avatar for NormR1
0
446
Member Avatar for bradyramone
Member Avatar for stevanity
0
112
Member Avatar for RaigaX9

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 …

Member Avatar for jackmaverick1
0
430
Member Avatar for LittleMissChoco

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"); …

Member Avatar for LittleMissChoco
0
146
Member Avatar for spartanace

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 …

Member Avatar for NormR1
0
526
Member Avatar for Alkaline8214

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 …

Member Avatar for Alkaline8214
0
214
Member Avatar for nickwl23

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. …

Member Avatar for nickwl23
0
195
Member Avatar for slatk3y

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 …

Member Avatar for gunjannigam
0
101

The End.