method:setFont ( object_font );return type:voidcontent:ใช้กำหนด fontexample:Container container = getContentPane (); Font font = new Font ( "TimesRoman", Font.BOLD, 12 ); container.setFont ( font );