News

The code snippet table.setDefaultRenderer( Class.forName( "java.lang.Integer" ), renderer ); tells the table to use the custom cell renderer for any cell that contains an integer.
Because the Swing designers wrote JTable with such flexibility, I was able to extend it with little code and create a new version of JTable that does support multiple editors per column.
Customize your JTable for an enriched Swing experience By Eric Lubin December 1, 2001 jro122001javatogocodesamples zip File Size: 26 Kb Note: Click here to download the source code for this article.
And when this data is added, the JTable redraws automatically, just as one would expect.<br><br>Enter the problem. I'd like to put the JTable into a JScrollPane. You know, for scrolling and stuff.