title: JTable showing and updating line numbers in View
body: <p>I have a 'JTable' added to the 'JScroll' Pane. I want to display line numbers for each row in the 'JTable' without changing the 'JTable' model. </p>
  
  <p>The below link is a nice solution which solves my line number issue. 
  <a href="http://www.javarichclient.com/display-line-numbers-jtable/" rel="nofollow">LineNumber Solution</a>
  However the line number column gets added till the entire scroll Pane height. Even though the JTable has no rows, or just 1 row, this extra blank gray column shows up for the entire height of the scroll Pane. I tried changing the ScrollPane height, table height everything.. Nothing seems to make the line number column as high as just the current table rows. </p>
  
  <p>Can you please suggest a away to have this Line Number column height according to table rows and increase/decrease height according to new rows being added or deleted?</p>