method:setLabel ( object_string );return type:voidcontent:ใช้กำหนด ข้อความ ให้กับ Jbuttonexample:JButton button = new JButton (); button.setLabel ( "cancel" );