How can you change the font in java in a frame using the setFont?

first make the object of font as follows
Font obj= new Font(" , Font.