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);

}

}

[690 byte] By [mukesh1977a] at [2007-11-27 6:57:59]
# 1

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 > top of Java-index,Java Essentials,Java Programming...
# 2
what type of problem u have . if u dont wnat to help so why u write like this . try to learn manners then use this forum . u dont know manners . dont try to be so smart understand.
mukesh1977a at 2007-7-12 18:35:25 > top of Java-index,Java Essentials,Java Programming...
# 3
I will post what I wish to post. You are polluting these forums, and I am informing others of it so they at least know about you if the decide to help.
jverda at 2007-7-12 18:35:25 > top of Java-index,Java Essentials,Java Programming...
# 4
why u are becoming over smart. dont be so rude that u know so much knowleged about java. because of people like you . so many person dont come to join this . and dont try to answer my question UNDERSTANDDDDDDDDDDDd
mukesh1977a at 2007-7-12 18:35:25 > top of Java-index,Java Essentials,Java Programming...
# 5
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 > top of Java-index,Java Essentials,Java Programming...
# 6
jverd, A bit tough but, sadly I think, fair.
corlettka at 2007-7-12 18:35:25 > top of Java-index,Java Essentials,Java Programming...
# 7

> 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 > top of Java-index,Java Essentials,Java Programming...