Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Help please

 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
I got all my "functionality" implemented accept locking which I will do when I do the network instance, but what's killing me is the JTable will not correctly size, it is always making my
column's smaller then they should be. Now, if I get rid of the JScrollPane that wraps it I am fine, but once I had the JScrollPane back in it makes my table format drastically smaller, so that you cannot read the big column names.
Here is a code snippet, hope someone out their can help, I been monkeying with it for 1.5 weeks, and I just can't get that table to behave with a scrollpane and size correctly.

Thank's in advance
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just used the following code in the constructor of my JTable's JPanel.

Mark
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank's Mark, I will give it a shot that waty.
-Matt
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic