Some of the components are hidden behind the second JTable and i dont know to make them visible
This may be a question better suited for a specific Java reddit page or discord sincw you're using a Java specific library.
If I remember correctly, you need to create and populate your entire panel before you add it to the frame. It has been a while since I have done java guis, but pretty sure that build order matters. So try adding your buttons to the panel before you add it to the frame. Another idea is to use a jave gui builder, it handles a lot behind the scenes.