| getLayoutOrientation() | ใช้คืนค่า รูปแบของ Object JList |
|---|
method:getLayoutOrientation ();
return type:void
content:ใช้คืนค่า รูปแบของ Object JList
example:Vector vector = new Vector (); vector.addElement ( "bamboo" ); vector.addElement ( "labcode" ); JList list = new JList ( vector ); if ( list.getLayoutOrientation () == JList.VERTICAL ) { System.out.println ( "list is vertical" ); }