Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Gene Taylor   on Jan 22 In Java Category.

  
Question Answered By: Jonathan Harrison   on Jan 22

Program is perfectly right.
you were trying to run it as an application.
this is applet.
use command
jview /a Circle on the dos prompt after comilation

import java.awt.*;

import java.applet.*;
public class  Circle extends Applet
{
public void  paint(Graphics g)
{
g.drawString("Sriram Web Page",20,20);

}
}

Share: