applet help! Programming Software Development by oali … without the image the browser shows the applet, thecode for the applet is below; [code] import javax.swing…contentPane.add(label, BorderLayout.NORTH); } } [/code] the applet works fine, the code placed inside the html page is… as below; [code] <applet code = "labels2.class" width = "… Applet Programming Software Development by pooja28 ….*; import java.awt.event.*; public class buttonDemo extends Applet implements ActionListener { String msg=""; Button one…); } } And import java.awt.*; import java.applet.*; public class appletDemo extends Applet { String msg; public void init() { appletDemo … applet Programming Software Development by rakheeindia …; import java.awt.TextField; import java.applet.*; import java.applet.Applet; import java.awt.event.*; import java…ActionListener; import java.awt.event.ActionEvent; //<applet code="prg9.class" height=600 …width=500> </applet> public class prg9 extends Applet implements ActionListener { String str="… Applet Programming Software Development by sundar4047 … an empty,it shows at the status bar "Start: Applet not initialized" . I don't know how to get… a image.pls somebody help me.the codes following ------------------------------------------------------------------------------------ /*<applet code="crim1.class" height=500 width=500>… Re: Applet Programming Software Development by sundar4047 … an empty,it shows at the status bar "Start: Applet not initialized" . I don't know how to get… a image.pls somebody help me.the codes following ------------------------------------------------------------------------------------ /*<applet code="crim1.class" height=500 width=500>… Re: Applet Programming Software Development by Tarek_2 … there is no message to passe from the first applet to the second) you can make a simple redirection… to the html page wich contains the second applet. In this solution, you will have two web pages…, each page contains one applet. To realize the redirection, you can use : `getAppletContext().showDocument… Applet Help Programming Software Development by cjd_1986 … need some pointers. The questions ask to "Write an applet that draws a house with it's door and windows… your own private int x; /** * Called by the browser or applet viewer to inform this JApplet that it * has been loaded… Applet help Programming Software Development by pi_lord12 … file in IE, it says "Loading Java Applet failed..." at the bottom left of the screen…: [CODE]package drawchessboard; import java.awt.*; import java.applet.*; //this class is written to draw a chessboard in…+=20; } } }[/CODE] html file code: [CODE]<applet code="Main.class" width=160 height=160>… Re: applet help! Programming Software Development by madhavipoudala …"); label.setIcon(catIcon); contentPane.add(label, BorderLayout.NORTH); } } /* <applet code = "labels2.class" width = "450" height… applet Programming Software Development by lena1990 …connect to the server when i run the applet from the appletviewer the applet connect to the server ,but when i …run the applet from web browser i have the following exception java.…" "connect,resolve") even i give the applet the folllowing permission grant{ permission java.security.SocketPermission "127… Re: Applet Programming Software Development by Ewald Horn … nice tutorial here : http://docs.oracle.com/javase/tutorial/deployment/applet/iac.html The basic idea is to use the parent… applet Programming Software Development by gampalu Hi, I am trying to implement an applet. The idea is to create the applet, then connect places where I single-click with…. With a double-click I should clear the applet. To clear the applet I am trying to set the color to white… Applet Help Programming Software Development by pateldeep454 … is my code so far......[/B] [CODE] import java.applet.Applet; import java.awt.*; import javax.swing.JOptionPane; public class HelloWorld… extends Applet { Font myFont = new Font ("Times Roman", …I will get after entering three numbers in the applet?[/B] Re: Applet help Programming Software Development by NormR1 … it here. Remove the package statement or change the <APPLET code= to include the package name and move the html… the drawboard folder in it. Ie up one level. The applet code doesn't have any of the methods that browsers… applet Programming Software Development by stupid guy … on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp…as examples. * */ import java.awt.*; import java.applet.*; import java.sql.*; import java.io.*; import java.…import java.awt.event.ActionEvent; public class Appletsamp extends Applet //implements ActionListener { public void init() { Button… Re: applet Programming Software Development by NormR1 Applets are restricted in what they can do. They need permission to connect to a site if they were not loaded from that site. Are you loading the html with the applet from a server at 127.0.0.1? > i give the applet the folllowing permission Where is the policy file with that statement? How are you giving the applet the permission? Re: Applet Help Programming Software Development by Valeriya Chris, I just copied and pasted your class to Textpad and tried to compile it and it doesn't. It keep saying identifier expected and illegal character(2 errors) I am in CIT-130 now and trying to write house applet but have no clue how to do it. Re: Applet Help Programming Software Development by Valeriya [QUOTE=ttunstall07;1294790]Did you ever figure out the solution to this? I am in the same boat as you and dont know where to go from here.[/QUOTE] Did you ever write this applet? Please help me out. :) Re: Applet Help Programming Software Development by cjd_1986 … am in CIT-130 now and trying to write house applet but have no clue how to do it.[/QUOTE] Should… Re: applet Programming Software Development by lena1990 i place my program that is named pro at f:/pro and the policy located at f:/pro/applet.policy and the web page that call the applet at f:/dist/launch.html Re: applet Programming Software Development by lena1990 the policy file named applet.policy and it is located in D:\Documents and Settings\ali\applet.policy i created using policy tool and the content of policy file isgrant { permission java.security.AllPermission; permission java.util.PropertyPermission "*", "read, write"; }; Re: applet Programming Software Development by lena1990 i have this code to make the java know about the applet <resources> <j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.7+"/> <jar href="pro.jar" main="true"/> Applet Help Programming Software Development by Firsttimer … I have this program that has to be in Applet, and it is comparing two floating numbers. I have…float comparison; // comparison of values entered by user // initialize applet by obtaining values from user public void init() { String …, 25, 25 ); } // end method paint } // end class Comparison Applet !! Applet !! Programming Software Development by mzd12111 Hi everyone , my problem is that : i Wrote a game program (applet) but when the Applet starts , user must click on it to activate it , how can i do to my applet that when it starts , it Activate itself automatically Thanks in anyhelp applet Programming Software Development by axn need this to change to random colors every .8 secs. compiles ok, but not getting wanted results. cant figure out where i am wrong? i get the applet viewer window with a black square but no color change. Here is the .html file <applet code = ColorChange .class width = 300 height = 300> </applet> Re: applet Programming Software Development by lena1990 i give the applet permission through policytool and i load the html from a server at 127.0.0.1 Re: applet Programming Software Development by lena1990 do you mean i go at the policy file and create a policy file in this location that specfies the permission for an applet Re: applet Programming Software Development by stephen84s @lena Maybe this might help you out: http://stackoverflow.com/questions/850497/socket-connection-to-originating-server-of-an-unsigned-java-applet Re: applet Programming Software Development by Darryl.Burke Cross posted, without the courtesy of mentioning the targeted help given here. http://www.java-forums.org/java-applets/58561-applet-connect-server-problem.html db Re: Applet Help Programming Software Development by Banderson … be compared float number2; // second number to be compared // initialize applet by obtaining values from user public void init() { // obtain first… larger", 25, 25); } }// end method paint } // end class Comparison Applet [/CODE]