I'm trying to get into java again (it's been a few years). I never really did any GUI coding in java. I've been using Netbeans to get started with this.
When using winforms in C# at work I use a usercontrols to build parts of my UI and add them to forms dynamically.
I've been trying to use
//I've also tried all possible combinations of these too
I figured it out. The comments under the accepted answer here explain it: Dynamically added JTable not displaying
Basically I just added the following before the mainPanel.add()