A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
JTable related problems
Joined: Jan 20, 2006
Apr 18, 2006 07:24:00
I am using JTable with 3 columns. I have added table to JScrollPane. I have also added scrollbars to table, and I add rows dynamically ,now My problems are -
1) I want my column should take size equal to highest width of column contents.
2) I want to select column when I click on column and press control key.
I have added selection model to table.
3) My table should have white background. I have tried to set background of
table as well as scrollpane but its not working.
SCJP 1.5, SCWCD 1.5
It is sorta covered in the
JavaRanch Style Guide
subject: JTable related problems
Problems with JTable. Need help!!
problem in colors of cells JTable
Images in a JTable
Color in JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014