The following program works fine but I am not able to set black as the background color in the textarea. How can I do it. Thanks in advance.
import java.awt.*;
class MyTextArea
{
public static void main(
String args[])
{
Frame f = new Frame("Black");
TextArea ta = new TextArea("Non editable", 5,
10, TextArea.SCROLLBARS_NONE);
ta.setEditable(false);
ta.setForeground(Color.yellow);
ta.setBackground(Color.black);
f.add(ta);
f.setSize(200,200);
f.setVisible(true);
}
}