Problem with refreshing and JScrollPane?

First with the JScrollPane

After it scroll down awhile, this happens (you can see in the picture, it breaks the border and overlap onto different JPanel.

Here's my code for it. (actionList is a JTextArea)

actionList.setRows(40);

actionList.setColumns(25);

actionList.setEditable(false);

actionList.setWrapStyleWord(true);

actionList.setLineWrap(true);

JScrollPane JSactionList =new JScrollPane(actionList);

panelAction.add(JSactionList);

[img]http://www.nhatban.net/~gurluver/panel.jpg[/img]

Also, I have this problem with trying to refresh my GUI.

3 sub-pic shows the initial state, after dealing all the cards, and after resfreshing the JPanel, here's my code to refresh:

panelTableDetails are where the cards (other JPanel) was added.

panelTableDetails.removeAll();

panelTableDetails.revalidate();

[img]http://www.nhatban.net/~gurluver/cards.jpg[/img]

Also, when I use the JScrollPanel, then when I deal the cards, the Cards won't be displayed as it suppose to in the 2nd picture, it always stays in the initial states (4 cards displayed). It only works if I use normal JTextArea.

How can I solve this problems?

Thanks

[1378 byte] By [Gurluvera] at [2007-11-26 17:36:17]
# 1
Hi, can any1 help me with this... Thanks
Gurluvera at 2007-7-9 0:04:21 > top of Java-index,Desktop,Core GUI APIs...
# 2
bumping up...
Gurluvera at 2007-7-9 0:04:21 > top of Java-index,Desktop,Core GUI APIs...