method:getStyle ();return type:intcontent:ใช้คืนค่า รูปแบบ ของ fontexample:Font font = new Font ( "TimesRoman", Font.BOLD, 12 ); int style = font.getStyle ();