Question: I have to put large amount of text into the `JTable`. When I try to put the text into the `JTable` , it all goes all into a row without breaking a line like :

![enter image description here](https://i.stack.imgur.com/KsH6u.jpg)

and there are no horizontal scroll bars also. Is there any way I can put the text in a new line but on the same row so that all the data is visible.If you notice the snapshot there are dots at the end I cannot see beyond them though there is still some text to be displayed.

I have tried increasing the height of the row but that doesn't help.

*Note :* I have done this in the constructor :

```
jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);

```

Answer: 
You can try .Insert() as below:

```
al.Insert(1, "bcd");

```
al[1] needs to be created before you can use it via the indexer.

`al[1] = "bcd";` will result in an exception of `ArgumentOutOfRangeException`.

Remember array indexes start from zero.

If you want to overwrite it, it should be like this.

```
al[0] = "bcd";

```