title: Adding Mouse listener to multiple JLabel
body: <pre><code>for(int k=0;k&lt; dtm.getRowCount();k++) //dtm is object of default table model
  {
      if(String.valueOf(dtm.getValueAt(k,1)).equalsIgnoreCase("Today") &amp;&amp; check==0 )
      {
          cnt++;
  
          JLabel jp=new JLabel();
          panel.add(jp);
          panel.setLayout(null);
  
          if(cnt&lt;=12)
          {
          jp.setBounds(j,500,100,100);
          j=j+115;
  
                  jp.addMouseListener(this);
          }
          else
          {
              j=j-115;
              jp.setBounds(j,400,100,100);
          }
          String b="&lt;html&gt;&lt;body text=#FDFA0B&gt;"+String.valueOf(dtm.getValueAt(k,0))+"'s Birthday";
          jp.setText(b);
          jp.setFont(new java.awt.Font("comicbd",Font.ITALIC+Font.BOLD, 14));
  
  
      }
  }
  </code></pre>
  
  <p>It will not work mouselister only apply for last placed Label...
  I want to apply mouse listener for all label how can I do that ..
  please help me ....</p>