title: Set the same font for all component Java
body: <p>I want to set a specific font for all component in a <code>JPanel</code> but I prefer that the question is still more general and not limited to the JPanel. How can I set the font to a list of component in a container (JFrame or JPanel)? </p>