title: JTable with complex formatting
body: <p>I need to make a JTable where each &quot;cell&quot; has a variety of separate data to display. I need to show, for each item, both as a percent of total and a dollar value, a target value, actual value, projected value, and the difference between any of the three. The attached image was done in Excel, but shows what I'm trying to produce in a JTable.
  <img src="https://i.stack.imgur.com/VTfMo.jpg" alt="enter image description here" /></p>
  <p>To make things even more interesting, other than the target and actual value rows, all other rows are selectable by the user at run time. As in they can choose what rows to display by selecting options within my program. I'll need to be able to customize cell shading, font and text format on a subcell-by-subcell basis, and I'll also need to vary borders, row heights and column widths throughout the table.</p>
  <p>I've not started coding this yet as I'm contemplating different methods. I'm looking for feedback from others as to which approach to take, or if there are other options I should consider.</p>
  <p>Option 1 - Just use a single JTable with a custom data model, but otherwise stay as close as possible to the default cell renderers and cell editors, and get fancy with boarders and formatting of each cell to mimic the intended look-n-feel. The data model would handle the translation from the row, column provided by the JTable and what item/value each cell actually corresponds to.</p>
  <p>Option 2 - Use a JTable as the cell editor for each cell within the JTable (a table within a table).</p>
  <p>Option 3 - Write my own custom cell renderer using a variety of labels and text fields.</p>
  <p>Option 4 - Are there any pre-written components that offer the kind of flexibility I'm looking for I should consider?</p>
  <p>Thoughts on the best approach to take appreciated.</p>
  <p>Thanks.</p>