title: Change Font type and size for the whole JFrame?
body: <p>I am working on Java GUI project. I have several components on the swing-based GUI. I want to change the font settings for all the components, rather than changing font for each component one by one.</p>
  
  <p>Is there a way to change the font type and size of all the components on a JPanel on a JFrame.</p>
  
  <p>Edit:</p>
  
  <p>This is how my code looks:</p>
  
  <pre><code>public class Test extends JFrame{
     public Test(){
  
       //all components are initialized here. (some buttons and text fields) and added to this
        this.setVisible(true);
     }
  
     public static void main(String []args){
       new Test();
     } 
  
  }
  </code></pre>