| new JLabel ( object_string, object_icon, swing_constants ) | ใช้สร้าง object jlabel โดยมี ข้อความ และ icon ที่กำหนด และได้กำหนดรูปแบบการจัดวาง ข้อความและicon ไว้ด้วย |
|---|
method:new JLabel ( object_string, object_icon, swing_constants );
return type:JLabel
content:ใช้สร้าง object jlabel โดยมี ข้อความ และ icon ที่กำหนด และได้กำหนดรูปแบบการจัดวาง ข้อความและicon ไว้ด้วย
example:ImageIcon icon = new ImageIcon ( "C:/bamboo.gif" ); JLabel label = new JLabel ( "Name :", icon, SwingContants.RIGHT );