How to change the font of JLabel? I try this, but have not succeeded:
JLabel nadpis = new JLabel(); nadpis.setFont(new Font("Papyrus", Font.ITALIC, 100)); nadpis.setText("hi");
Only the size is changed, but the font is still the same
I have not seen papyrus in my available fonts. How to add it?
See the Font methods for createFont() options.
Font
createFont()
Source: https://habr.com/ru/post/899862/More articles:JSF - makes some words Bold - javaCreate Spinner in Delphi Console - delphiAre class diagrams updated automatically? If not, can this be done? - c #Sqlite Database Browser crahses - how to restore a database with a log file - sqliteGWT List Editor Binder - javaWhy are programmers "strongly advised not to participate in syntactic conversions"? - erlangASP control vs HTML control - asp.netGetting full and available memory when installing> 4 GB - delphiwhen is the sleeping thread of the parent thread also a dream? - multithreadingWebControl vs HtmlControl. Cos and pros use them in a web form application - asp.netAll Articles