102 Topics

Member Avatar for
Member Avatar for adams161

Hi, I'm considering writing a java applet that has a chess board and lets people solve puzzles. There are chess engines that are free that could be the AI to play against and they come in executable files (console apps) compiled for both Mac and Windows. Now i have a …

Member Avatar for iamthwee
0
498
Member Avatar for 1885

I have the following form that works: http://craigcoleman.com/java/julia/ I'm trying to do the same thing with this form and I can not get the parameters to work with the form. I am using java script to get the parameter values. Please throw me a bone. <html><head><title> Test New </title> </head> …

Member Avatar for iamthwee
0
897
Member Avatar for moaz.amin.37

i am confuse about `paint()` method in applet .The confusion is that paint method is getting object as parameter of Graphics class like this `public void paint(Graphics g)` and i read that the Graphics class is an abstract class then how we create object of Graphics class and now you …

Member Avatar for JamesCherrill
0
373
Member Avatar for moaz.amin.37

first se these methods setForeground(Color.cyan); setBackground(Color.red); these methods are defined in Component class like this java.awt.Component and we pass parameters of an other class this is very confusable for me that we pass class members as parameters to method of a different class, i mean `setForeground(Color.cyan)` i defined in Component …

Member Avatar for stultuske
0
212
Member Avatar for moaz.amin.37

i am very confuse about java applets so please solve my questions my question is that when we write applet then we write only methods defination not method calling so i am confuse about this that who call the methods of applets.and second is that we call the methods of …

Member Avatar for JamesCherrill
0
252
Member Avatar for Richa_2

` Hey can u solve my prob. I was running an Applet program(.html file) with java Browser but it showing error = "your security settings have blocked a local application from running" So can u say ... which application is this

Member Avatar for Richa_2
1
225
Member Avatar for shubham.goel.41995

I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

Member Avatar for invadev
0
282
Member Avatar for pooja28

Hi to all, I have following two Applets . import java.applet.*; import java.awt.*; import java.awt.event.*; public class buttonDemo extends Applet implements ActionListener { String msg=""; Button one,two,three; public void init() { one=new Button("One"); two=new Button("Two"); three=new Button("Three"); add(one); add(two); add(three); one.addActionListener(this); two.addActionListener(this); three.addActionListener(this); } public void actionPerformed(ActionEvent ae) { String …

Member Avatar for pooja28
0
348
Member Avatar for Akshay7

Basically i'm looking for tutorials on how to create your own pert char in java (applet) to show dependencies? Any tutorials on that please?

0
98
Member Avatar for deolalkar_pooja

Hello to all, I have following simple Applet program. import java.applet.*; import java.awt.*; public class myapp1 extends Applet { Label l1, l2, l3, l4; TextField t1; TextArea t2; Checkbox c1,c2,c3,c4,c5,c6; CheckboxGroup cg; Button b; public void init() { l1=new Label("Enter your name: ", Label.RIGHT); t1=new TextField(20); l4= new Label("Enter your …

Member Avatar for deolalkar_pooja
0
249
Member Avatar for mcoliver88

Hi I am creating a java applet for an assignment, but if hit a snag. I have had to create a sales table for different sales people. I have made it that people can click "sales person 1" and it will display his sales. The issue is when you click …

0
108
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
567
Member Avatar for kedxu

This is for anyone who might find it helpful. This template... * uses double-buffering, which can help game-makers fix that glitchy screen problem * can be exported as a runnable jar file. If you're like me and had trouble making your Applet executable, this is a possible fix. * Additionally …

Member Avatar for JamesCherrill
0
311
Member Avatar for Gerryne

Hi. Our homework is to use try...catch block in our calculator applet. I don't understand why the "catch" does not work. It will always go straight to the "finally". Here's the code: import java.applet.*; import java.awt.*; import java.awt.event.*; import java.awt.Label; import javax.swing.*; public class clsCalculator extends Applet implements ActionListener { …

Member Avatar for stultuske
0
429
Member Avatar for murali2489

Hi All, I have created a Java applet in Eclipse and ran it in eclipse, it works fine . To run the applet in Webbrowser it was mentioned to embed the .class file inside a webpage by creating a HTML file. My class name is MyFirstGUI. i have created a …

Member Avatar for murali2489
0
274
Member Avatar for jspence29

I can't figure out why my java applet is not displaying, I have all of the files in the same folder, and I have java enabled on my browser. Here is the code //java code import java.applet.*; import java.awt.*; import javax.swing.*; /** * The HelloWorld class implements an applet that …

Member Avatar for bguild
0
311
Member Avatar for Dorar

Hi This code not run : it show this error: incompatible types-found java.lang.String but expected HuffmanCodingAnimation.Node This line of code ` root.left.code = root.code + "0";` Here is the code: import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.tree.*; /* * This program enables a user to enter text and displays …

Member Avatar for JamesCherrill
1
634
Member Avatar for Nagarajan M

Hi friends, I am using java applet that will perform some operations. Now it is independent of jsp or html page. So,if i close an applet my html page remains active and Vice-Versa. What i want to do is embed an java Applet in html page itself. When i click …

Member Avatar for Nagarajan M
0
700
Member Avatar for asifalizaman

hi!guys i hope you all will be fine . Today i want to know from you about the Java Application? According to my views or my knowledge may be i am wrong.There are two types of application in java which is **1. Java Stand-alone Application 2. Java Applet Application** I …

Member Avatar for stultuske
2
249
Member Avatar for SYvonneMendoza

** //When an item from the list is selected, a checkbox along with the drawn graphics schould appear. but only the graphics appear. Help? *basic** import java.awt.*; import java.applet.*; import java.awt.event.*; import java.awt.Checkbox; public class GetSelectedItemExample extends Applet implements ItemListener { Choice c; CheckboxGroup g1 = new CheckboxGroup(); Checkbox checkBox1 …

Member Avatar for SYvonneMendoza
0
237
Member Avatar for vegaseat
Member Avatar for mshauny

I having been working on java web-start applet for serial communication which I now need to integrate and make it invoke able from an ASP .NET webpage / application. I have tried numerous ways of doing this which all have not yielded anything progressive. including but not limited to the …

Member Avatar for JohnnyCash
0
444
Member Avatar for jasonmark238

Hi friends. What are applets in java. What are the advantages of Applets over stanalone programs. Please give me the better way to learning applets easy, because dificult to remembering. Please help me. Thanks & Regards Jasonmark Rxdrugonlinestore

Member Avatar for <M/>
0
198
Member Avatar for Viped

Hi. I have a problem with launching my application as applet. The game runs fine as an application. my applet code: package net.viped.breakout; import java.applet.Applet; import java.awt.GridLayout; public class GameApplet extends Applet { Core core = new Core(); public void init() { setLayout(new GridLayout()); add(this.core); } public void start() { …

Member Avatar for jalpesh_007
0
243
Member Avatar for nvijay
Member Avatar for stultuske
0
154
Member Avatar for Zatara7

So this is going to be the last project for my java class. Any input is appreciated and I'm generally posting it here because someone else might benefit from it. It is not done yet but when it is I'm going to post the full code. I made a video …

0
382
Member Avatar for IsaiahLay

**This program is supposed to read data in from a file into an array list and everything compiles correctly so far but when i go to run the applet ProcessNovels it shows a blank window saying "Start: applet not initialized? Im not sure where the problem actually is i am …

Member Avatar for NormR1
0
190
Member Avatar for cj122

import java.applet.Applet; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import java.awt.Image; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Random; import javax.swing.JFrame; public class StartingPoint extends Applet implements Runnable, KeyListener{ public static void main(String[] args) { StartingPoint sp = new StartingPoint(); JFrame frame = new JFrame("My applet, as application"); frame.getContentPane().add(sp); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); sp.init(); sp.start(); frame.pack(); …

Member Avatar for NormR1
0
239
Member Avatar for hwoarang69

note x = player x postion y = player y postion so iam trying to set up collsion between player and enemy. i want it so my player touch the enemy than my player should stop. and not go though it. this code below kind of works. if my player …

Member Avatar for JamesCherrill
0
311
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
243

The End.