title: Java : How to draw graphic object?
body: <p>I am developing a small desktop application in Netbeans. The application is complete and working fine. A small description of application is as follow:</p>
  
  <p>The application is basically an <strong>object manager</strong>, where user add new object, remove old objects and connect object with each other. What i did is that i simply add 3 panel and change its type to titled border. One for Add object one for remove and one for connect. </p>
  
  <p><strong>Status:</strong></p>
  
  <p>Every thing is working fine as expected.</p>
  
  <p><strong>What Left:</strong></p>
  
  <p>In order to make UI more appealing i added a new panel at the end and called it "Object Viewer". I am planing to visualize the steps which user performs e.g</p>
  
  <ol>
  <li><p>If user add an object  then i that pannel i will daraw a little
  circle and fill it with green color</p></li>
  <li><p>Similarly if user remove some object then again i will draw another
      cricle and fill that with red</p></li>
  <li>And when user connects two object then i will draw two circle and
      connect them with a dotted line</li>
  </ol>
  
  <p>This is my first java application, i only want to know how do i acheive this task. Some links or experience are highly appreciated</p>