I have a Jtable which gets populated from an array of values. My code is like this:
private static final String[] columnNames = {\"Line Number\", \"Error\"
See the approach in Table Row Rendering for a solution without creating custom renderers.
You may also want to check out Table Format Renderers so you can format the percentage column easily.