Results 1 to 3 of 3

Thread: Help please

  1. #1
    goku4eternity is offline Member
    Join Date
    Dec 2010
    Posts
    12
    Rep Power
    0

    Talking Help please

    I need a java applet to write Welcome to Java Five Times and each line ends has to end with a new line.
    Last edited by goku4eternity; 12-14-2010 at 07:37 AM.

  2. #2
    invalidsyntax is offline Member
    Join Date
    Apr 2009
    Posts
    4
    Rep Power
    0

    Default

    where is your code?

  3. #3
    goku4eternity is offline Member
    Join Date
    Dec 2010
    Posts
    12
    Rep Power
    0

    Talking here is some code

    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;

    public class HelloWorldApplet extends Applet{
    public static void main(String[] args){
    Frame frame = new Frame("Roseindia.net");
    frame.setSize(400,200);
    Applet app = new HelloWorldApplet();
    frame.add(app);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
    System.exit(0);
    }
    });
    }
    public void paint(Graphics g){
    g.drawString("Hello World!",200,100);
    }
    }

    I do not know how to make this java file into a class file, I do not know how to make write Welcome to Java Five Times and make each line end with a new line.

Posting Permissions

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