how to change Font of JLabel ? I try this but with no succes:
JLabel nadpis = new JLabel();
nadpis.setFont(new Font("Papyrus", Font.ITALIC, 100));
nadpis.setText("hi");
Just size is changed but Font is still same
I didn't see papyrus in my available fonts. How can I add it?
Look in the Font
methods for the createFont()
variants.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With