File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable related problems

Anand Loni
Ranch Hand
Posts: 150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic