title: How to load data into set of jbuttons from the database
body: <p>I want to load my food items int to a set of jbuttons. I have come this far</p>
  
  <pre><code> static JButton j;
   jPanel3.setLayout(new GridLayout(3, 5, 3, 3));
   jPanel3.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
         for (int i = 0; i &lt; 10; i++) {
              j = new JButton();
              j.setText(i + "");
              jPanel3.add(j);
                   }
  </code></pre>
  
  <p>but i want to get individual source of the button. i only get the last button source. anybody know how do to this? </p>