aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes I Can't Make Columns Wider in My JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "I Can Watch "I Can New topic
Author

I Can't Make Columns Wider in My JTable

Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Hello,

I have a JTable in which I can't widen or narrow the column widths. It works except that when I quit my application and start it up again, I can narrow columns but I can't make them wider.

I am using Java 6.

Thanks

-- Kaydell
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

SSCCE?
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

Thanks for the quick reply.

While I was making a small example of my code, I figured it out.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18907
    
    8

Excellent! (That's one of the expected outcomes of producing the SSCCE.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I Can't Make Columns Wider in My JTable