error in programme
hi i have made programme so there is no any error in that programme but background color is not changing.plz help
package tuna;
/**
*
* @author sonia
*/import javax.swing.*;
import java.awt.*;
import java.awt.Graphics;
public class Appine extends JApplet {
/** Creates a new instance of Appine */
public Appine() {
JApplet ap= new JApplet();
ap.setBackground(Color.BLUE);
ap.setForeground(Color.YELLOW);
ap.setVisible(true);
}
public void paint(Graphics g){
g.drawString("heelo World",40,40);
g.setColor(Color.PINK);
g.fillRect(20,30,40,50);
}
}
Before anybody tries to help this bozo, please examine his post history.
Go away, mukesh.
You're just asking others to spoon-feed you stuff that you should have been studying and learning all along. You were either too lazy or too inept to learn your course material when you should have, so deal with the consequences.
jverda at 2007-7-12 18:35:25 >

Do you have a point? I can't make heads or tails of that random babbling. You seem to be trying to tell me what to do, which is quite amusing, as I can and will do as I please. I really wish I could personally watch you fail your exam, though.
jverda at 2007-7-12 18:35:25 >

> jverd,
>
> A bit tough but, sadly I think, fair.
Maybe. The guy's been irritating me with his "Feed me the Java I was too lazy to study all term and now have a test on" questions. I'm pretty sure he was also told to use code tags at some point, but naturally couldn't be bothered to do that here.
jverda at 2007-7-12 18:35:25 >
