| setColumnSelectionAllowed() | ใช้กำหนดว่าเป็นการเลือกเป็น cell ใช่หรือไม่ ( ถ้าไม่ใช่จะเลือกเป็น แถว ) |
|---|
method:setColumnSelectionAllowed ( boolean );
return type:void
content:ใช้กำหนดว่าเป็นการเลือกเป็น cell ใช่หรือไม่ ( ถ้าไม่ใช่จะเลือกเป็น แถว )
example:String [][] value = { { "apple", "red" }, { "orange", "orange" }, { "grape", "green" } }; String [] column = { "fruit", "color" }; JTable table = new JTable ( value, column ); table.setColumnSelectionAllowed ( true );