• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems in TableHeader...

 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I have a table in my Applet that responds to a click on the table header.
Heres the code:

I need to do something when the user selects a certain column and that works great. The problem is that some of the cells are to small and when I try and resize them in the GUI it registers as a click (and I can never re-size)
How can I add the abbitlity to both select a specific column but also keep the original function of a Jtable and be able to re-size the cells for readability?

Thanks
 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the question not direct enough? I have searched on the internet and can't find an answer. I would appreciate the help.
Thanks
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pat

Why don't you use mouseClicked instead of mousePressed. If you haven't try it, it is worth to try.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic