The moose likes Swing / AWT / SWT and the fly likes Problems in TableHeader... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problems in TableHeader..." Watch "Problems in TableHeader..." New topic

Problems in TableHeader...

Pat Peg
Ranch Hand

Joined: Feb 04, 2005
Posts: 194
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?

Pat Peg
Ranch Hand

Joined: Feb 04, 2005
Posts: 194
Is the question not direct enough? I have searched on the internet and can't find an answer. I would appreciate the help.
Pat Hays
Ranch Hand

Joined: Aug 20, 2004
Posts: 138
Hi Pat

Why don't you use mouseClicked instead of mousePressed. If you haven't try it, it is worth to try.

Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: Problems in TableHeader...
Similar Threads
JTable date edit problem
problem with innerclass
Evaluate A JSP Expression Inside A Tag Handler
JTable with JButtons in header
Clickable jtable header?