Results 1 to 2 of 2
  1. #1
    gnoomen2 is offline Member
    Join Date
    Nov 2012
    Rep Power

    Default How to make this applet start a exe file?

    I am completely new to java programming, and need some help. This is what the applet looks like:

    Java Code:
    import java.applet.Applet;
    import java.awt.*;
    // Applet code for the "Hello, world!" example.
    // This should be saved in a file named as "".
    public class HelloWorld extends Applet {
      // This method is mandatory, but can be empty (i.e., have no actual code).
      public void init() { }
      // This method is mandatory, but can be empty.(i.e.,have no actual code).
      public void stop() { }
      // Print a message on the screen (x=20, y=10).
      public void paint(Graphics g) {
        g.drawString("Hello, world!", 20,10);
      // Draws a circle on the screen (x=40, y=30).
    And i would be so glad if you guys could make a code that lunches the exe file in the root folder of the web page. Just remove everything about Hello World too, thanks! I would also like to learn how to add a download link here, so when they run the applet the download starts. And please show how with this applet here. Thanks.
    Last edited by gnoomen2; 11-04-2012 at 02:35 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: How to make this applet start a exe file?

    Moved from New to Java

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to make an an applet?
    By Mr U in forum New To Java
    Replies: 2
    Last Post: 10-01-2012, 06:01 PM
  2. Make applet run outside editor
    By Maarten in forum New To Java
    Replies: 4
    Last Post: 07-29-2012, 06:04 PM
  3. Replies: 7
    Last Post: 09-18-2011, 06:43 AM
  4. Applet won't start
    By David2010 in forum New To Java
    Replies: 5
    Last Post: 07-14-2009, 06:32 AM
  5. how to start a Web Java applet without a webbrowser
    By racker79 in forum Java Applets
    Replies: 3
    Last Post: 09-22-2008, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts