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.
By setting the `f.setLayout(null)` the Frame will use an absolute layout which will start drawing from the top left corner of the Frame means drawing or adding components will be drawn under the title bar.
The problem is that when you add your textarea to the Frame it starts from the top left corner of the Frame and the text is hidden under the title bar you should increase the value of y in `ta.setBounds(10, 30, 400, 400)`; from 10 to 30