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