making a single column horizontally scrollable for JTable

Hello Everyone and thank you for reading my post.

I have been trying for the last 3 days to make a single column horizontally scrollable on my JTable but for some reason I can not get it to work.

I simplyfied my example to 2 columns and 5 rows where

the rows in the first column have long text and it will have a horizontal scroll bar to scroll to the end of the text, similiar to split in Excel.

The second column it doesn't matter

Thanks again and have a great time,

Al

[520 byte] By [altojavaa] at [2007-11-27 10:45:18]
# 1

Friend you use table cell renderer for your problem.

The solution would be like:

1. Write cell renderer that displays textfield contained in scrollpane.

2. Apply cell renderer to separate column where you require horizontal scroller.

PawanPa at 2007-7-28 20:12:11 > top of Java-index,Desktop,Core GUI APIs...