my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes JTable related problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable related problems" Watch "JTable related problems" New topic
Author

JTable related problems

Anand Loni
Ranch Hand

Joined: Jan 20, 2006
Posts: 150
Hi,
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.

any help....


~ Anand,
SCJP 1.5, SCWCD 1.5
 
GeeCON Prague 2014
 
subject: JTable related problems