Java Swing — Jpanel with Jbuttons embedded within a JTable

Don't include another components to JTable. Let alone components with multiple other components. The reason is that JTable won't pass mouse events to its cells. So even when you have buttons inside JTable, then you would have to take care about pressing them by yourself, by:

  • get cell it was clicked to
  • get the exact coordinates
  • extrapolate these coordinates to the inner component
  • manually call click on the corresponding button.

And even then you won't get button animation and stuff.

If you need to arrange components into a table, use JPanel with GridLayout or GridBagLayout.