Auto generating new jPanels onto a JFrame : I'm currently working on a blog/forum portal as a school project for University.

I'm working in netbeans 8.2 using Swing as the GUI.

My question is if it's possible to auto generate an already pre-made JPanel class onto a JFrame so that it looks like the questions on the main page of stackoverflow.

So basically when a post is created it goes into the database -> I use a getter method to fill the info on the JPanel and then it auto generate itself onto the JFrame so that I don't need to create several fixed JPanels onto the Jframe.

So if there are no posts the page would be blank. When a new post is created it shows up as the first post, the next one lies over that one and so on so forth.

Is it possible to do this in Netbeans?

