How to Change Bckgrnd color in Applets?

Hello

I dont know how to change the Bckgrnd and Frgrnd color of an Applet. Can anyone help.

munira
muniraAsked:
Who is Participating?
 
d_p2Connect With a Mentor Commented:
Set background color:
    setBackground(java.awt.Color.red);
Set foreground color:
    setForeground(java.awt.Color.yellow);

Best regards
Doris
0
 
muniraAuthor Commented:
Thank You very much.

munira
0
 
d_p2Commented:
welcome
0
All Courses

From novice to tech pro — start learning today.