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.
It *is* being displayed. Those scroll bars are the scroll bars on the textarea, not the frame. Put your cursor in there and try to type... it should accept text.

Consider setting a layout manager if you want better control over how the components are organized within the panel.

Something like:

```
f.setLayout(new GridLayout(2, 1));
f.add(new Label("This is a text area:"));
f.add(ta);

```