1. separator/splitter b/w 2 jtable coderanch.com |
2. Jtable with column separators from top to bottom regardless the number of rows java-forums.orgpaintComponent invoke super implementation compute cell rectangle of a cell in the last row [at getRowCount() -1] compute bottom of that rectangle [y + height] ... say Y1 compute bottom of visible rectangle [getVisibleRect().height] ... say Y2 IF Y2 > Y1 THEN set the Graphics color to the grid color [gridColor or getGridColor()] iterate over the columns in the column model ... |