Single column JTable in scrollbar
If you are asking for a horizontal scrollbar on only one column, the following method (customizing the viewport) will probably do the trick:
http://www.java2s.com/Code/Java/Swing-Components/FixedTableColumnExample.htm
a source to share
Your question really doesn't make any sense to me, so I just make a wild tick
TableModel can be used by many tables. This way you can create JTable easily with TableModel. Then you can use the TableColumnModel to remove the TableColumns from the view. Therefore, only one column will be displayed in the scroll.
Edit:
To scroll horizontally, you use:
table.setAutoResizeMode( JTable.AUTO_RESIZE_OFF );
Then you set the TableColumn to your preferred width and a scrollbar will appear if needed. Read the JTable API and follow the Swing tutorial link on "How to Use Tables" for more information on setting column widths.
a source to share