0

Is there a possibility to implement a bowling score card using a normal JTable? Could I split a Cell in two Textfields? How do I do this?

I want to implement this with a JTable and not with a normal GridBagLayout like (JTable splitting cells. How to)

Is this possible?

Thanks in advance.

bennispfr
  • 3
  • 2
  • Is it possible, yes, do you really want to do it, probably not. Why? Because it's insanely complex and would require you to create your own UI delegate to achieve it. For some ideas (on how insane it is), you could look at [this example](https://stackoverflow.com/questions/20206578/show-column-header-on-dragging-column/20208995#20208995) which just does column grouping – MadProgrammer May 14 '18 at 08:29
  • @MadProgrammer or could I do this with a TableCellRenderer or is it just the representation of the cell? – bennispfr May 14 '18 at 09:17
  • Yes, a single cell, not two, which you’d need them to span multiple columns – MadProgrammer May 14 '18 at 09:19
  • @MadProgrammer How would I do this? Do you have an example for me? Thanks – bennispfr May 14 '18 at 13:30
  • Since it’s the ui delegates responsibility to manage the cell/editor placement, you’d need to start there and no, I don’t have an example – MadProgrammer May 14 '18 at 19:26

0 Answers0