title: How to change the font of the TextArea without changing the font of the Buttons?
body: <p>I am making a text editor for fun.</p>
  
  <p>The problem which I am facing is to change the font of the <code>TextArea</code>.</p>
  
  <p>The <code>setFont</code> method of the <code>Frame</code> changes the font of the text area as well as it changes the font of the <code>Button</code> controls.</p>
  
  <p>How to change the font of the text area so it will not effect the font of the buttons?</p>
  
  <pre><code>Diary()
  {
      ...
      this.setFont(new Font("courier",Font.PLAIN,18));
      ...
  }
  </code></pre>
  
  <p>This changes the font of the text area as well as the buttons.</p>
  
  <p>How to change the font of the text area only?</p>