title: How to set value to label/text
body: <p>I'm trying to do basic calculation for a program and I want the output to be in the label and some in text boxes, how do I do that?? parts of the code are as below. There are other things that add to the quantity but I only show this one.</p>
  
  <pre><code>int quantity = 0;
  int sum = 0;
  
  if(jToggleButton3.isSelected())
  
      {
          quantity = quantity + 1;
      }
  
      sum = quantity;
  
      quantityLabel = quantity;
      sumLabel = sum;
  </code></pre>
  
  <p>I want the quantity and sum to be output both in labels, how can I do that?? In vb it's like lblquantity.text = quantity; but here I have no idea and I can't find any links that teach this(Also what is the proper naming convention) </p>
  
  <p>Edit: Thanks a lot guys, got it working !</p>