title: Adding a Print Button to JPanel
body: <p>I have a JPanel, with some components like buttons, labels, table, etc.</p>
  
  <p>What I want to do is to add a functionality (a jButton), that clicking on that button directs me to print the whole panel, along with labels and components.
  Please help.</p>