AWT Label

Change Text Font Of Label Example

Example Output

Add Comment

  • It does not work anymore. 🙁
    Whenever I try this I get the following error: “The method setFont(javafx.scene.text.Font) in the type Labeled is not applicable for the arguments (java.awt.Font)”. The fragment that produces this output is this one:

    Font miFuente1 = new Font(“Serif”, Font.BOLD, 36);
    Label label = new Label();


Facebook Fans