Question: This is a small code which should display a textarea and should show what I type. But I don't know why its not displaying the text. When I press and hold any key the horizontal scroll bar moves that means somthing is going in there but nothing is getting displayed.
I AM USING JDK 1.8 and edited using notepad on windows 7 64-bit.

```
public class tarea
{

    public static void main (String[] args)
    {
        Frame f = new Frame("My Frame");
        f.setLocation(100, 100);
        f.setSize(500, 500);    
        f.setLayout(null);
        f.setBackground(Color.BLACK);
        f.setTitle("My area");

        TextArea ta = new TextArea();
        ta.setBounds(10, 10, 400, 400);
        f.add(ta);

        f.setVisible(true);

    }
}

```

Answer: 
It is displaying the text, you just don't see it. The top of the TextArea is just too high to be displayed.

You have to change this line:

```
ta.setBounds(10, 10, 400, 400);

```

to this:

```
ta.setBounds(10, 30, 400, 400);

```

Changing the Y position will solve the problem.
TextArea class alternatively can be initialized with 2 parameters
i.e. width and height

```
 TextArea ta=new TextArea(50,50);

```

You should remove setBounds() method and should use 

```
setLayout(new FlowLayout());

```

INSTEAD OF 

```
setLayout(null);

```

If you face any more problem related to this let me know.....