Package HotelReservationSystem
Class Fonts
java.lang.Object
HotelReservationSystem.Fonts
A class that handles fonts for the GUI of the Hotel Reservation System.
-
Constructor Details
-
Fonts
public Fonts()Default empty constructor
-
-
Method Details
-
get
Created a font that can be used by the Java Swing GUI from a .ttf file- Parameters:
type
- the type (regular, bold, italic) of the fontpt
- the size of the fontisRegistered
- checker if the font is already registered in the local graphics Environment- Returns:
- the derived font with the approriate size and type
-
get
-
init
public static void init()Initializes the fonts and the types.
-