title: how can i use different font types and sizes for the same text area in java
body: <p>i have a text area in my java form. how can i use different font types and sizes</p>
  
  <pre><code> public double roundTwoDecimals(double d) {
      DecimalFormat twoDForm = new DecimalFormat("#.##");
      return Double.valueOf(twoDForm.format(d));
  }
      int ches = 0;
      ref = Integer.parseInt(jTextField6.getText());
      nam = jTextField7.getText();
      add = jTextArea3.getText();
      ph = jTextField8.getText();
  
      bill(jTextArea4);
  
      total();
  
      double tt = 0;
      if (flag == 1) {
          uclist(nam);
          ches = jComboBox2.getSelectedIndex();
      } else if (flag == 0) {
          iclist(nam, add, ph);
          ches = not();
      }
  
      for (int i = 0; i &lt; no(); i++) {
          if (qty[i] != 0) {
              t[i] = amt[i] / 1.135;
              tv[i] = amt[i] - t[i];
              isalest((i + 1), ches, qty[i], price[i]);
              uSale(nItem[i], qty[i]);
              ustock((i + 1), qty[i]);
              jTextArea4.append("\n" + nItem[i] + "  " + qty[i] + "  "
                      + price[i] + "  " + r(t[i]));
          }
          tt += tv[i];
      }
  
      jTextArea4.append("\n\tTotal(including vat @13.5%" + r(tt));// TODO add your handling code here:
  </code></pre>