FontDemo example
This program displays the available fonts and how they look in different sizes and styles..
Look and Feel
How to use the default Java cross-platform Look & Feel..
Fonts - Centering Text
To find the size of a font or of a particular String..
FontMetrics
The java.awt.FontMetrics class is used to determine the measurements of characters and strings..
Font
The java.awt.Font class is used to create Font objects to set the font for drawing text, labels, text fields, buttons, etc..
Border Example
Create a panel with 10 pixels of space around it..
Borders
How to create Bordets?.