Method setFont(Font f)
Return type: void
Member of: java.awt.Component
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 component.setFont(newFont);
2 component.setFont(newFont);
3 setFont ( font );
4 _delegate.setFont(font);
5 comp.setFont(scaleFont(comp.getFont(), scale));
6 textArea.setFont( new Font( "Courier", Font.PLAIN, 10 ) );
7 button.setFont(new Font("Arial", Font.PLAIN, 12));
8 label.setFont(sanFont);
9 iAboutTitleLabel.setFont(new Font("Arial", 1, 12));
10 lComponent.setFont(lFont.deriveFont(lStyle,lSize));
11 component.setFont ( graphics.getFont ( ) );
12 label.setFont(DISPLAY_FONT);
13 label.setFont(DISPLAY_FONT);
14 this.noSelectionComponent.setFont(getFont());
15 c.setFont(c.getFont().deriveFont(Font.BOLD));
16 _header.setFont(new Font("Times Roman", Font.BOLD, 18));
17 area.setFont(gui.text_font);
18 c.setFont(currentValuePane.getFont());
19 txtCommand.setFont(fFont);
20 l1.setFont (new Font (f.getName (), Font.BOLD, f.getSize ()));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.