title: Best way to build a dynamic JPanel
body: <p>I'm building a JPanel that contains multiple fields, but according a product, the fields may vary.<br> There some common fields and some particular fields for each product.
  Using some Interfaces, it's possible to group the fields to build the referred JPanel with all needed fields, like this:</p>
  
  <pre><code>public class VPNProduct extends JPanel implements VPNFields{
      //use and positioning of the fields
  }
  
  interface VPNFields extends CommonFields{
      //particular VPN fields
  }
  
  interface CommonFields{
      //fields common to all products
  }
  </code></pre>
  
  <p>My question is, there's some best practice or technique that make it easier or more organized, including the position of the fields in the panel?</p>
  
  <p>Thanks in advance.</p>