title: Setting a universal font size for all my Jlabels JTextArea , etc
body: <p>Hello I have an odd question.</p>
  
  <p>I want to know if and how to go about making universal settings for my Jlabels ,TextAreas and basically any text that can go on a panel. I have been writing the font sizes on every label to make it consistent. However the panels are growing and I don't want to hard code the font size on every label. </p>
  
  <p>Here are the sizes I am using and would like to use on all my labels, and textarea's.</p>
  
  <pre><code>titlelb.getFont().deriveFont( Font.BOLD, (float) 20.); 
  lb1.getFont().deriveFont( Font.PLAIN, (float) 11.);
  lb2.getFont().deriveFont( Font.BOLD, (float) 11.);
  textArea.setFont( Font.decode( "Arial-PLAIN-11"));
  </code></pre>
  
  <p>I am just wondering is there a way to set it universally where every Panel would inherit these specific sizes if that is at all possible, I don't really know how to go about it for the sizes of the labels which is why I am here asking. Thank you in advance.</p>