| setHorizontalTextPosition() | ใช้กำหนด รูปแบบการจัดวาง ข้อความและ icon บน jlabel ในตำแหน่งแนวนอน |
|---|
method:setHorizontalTextPosition ( swing_constant );
return type:void
content:ใช้กำหนด รูปแบบการจัดวาง ข้อความและ icon บน jlabel ในตำแหน่งแนวนอน
example:JLabel label = new JLabel (); label.setText ( "Name :" ); label.setHorizontalTextPosition ( SwingConstants.CENTER );