How to change The Font
Can anyone teach me how to change the font? Example i have codes below. How to make change the font and make it bold. I new in java. Thanks
h1 =new Label("=============================> English Language Online Quiz <=============================");
JLabel label = new JLabel("My Label");
java.awt.Font font = new java.awt.Font("Dialog",Font.BOLD,14);
Read more about this on Java doc. First argument of the Font constructor mentioned above is font name, it can be font face name or font family name. That's point most of the time are confusing.