title: Auto generating new JPanels onto a JFrame
body: <p>I'm currently working on a blog/forum portal as a school project for University.</p>
  
  <p>I'm working with Swing as the GUI.</p>
  
  <p>My question is if it's possible to auto generate an already pre-made <code>JPanel</code> class onto a <code>JFrame</code> so that it looks like the questions on the main page of stackoverflow.</p>
  
  <p>So basically when a post is created it goes into the database -> I use a getter method to fill the info on the panel and then it auto generate itself onto the frame so that I don't need to create several fixed panels onto the frame.</p>
  
  <p>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.</p>
  
  <p>Is it possible to do this?</p>