| getCellSelectionEnabled() | ใช้ตรวจสอบว่า สามารถเลือกข้อมูลใน object JTable ได้หรือไม่ |
|---|
method:getCellSelectionEnabled ();
return type:boolean
content:ใช้ตรวจสอบว่า สามารถเลือกข้อมูลใน object JTable ได้หรือไม่
example:String [][] value = { { "apple", "red" }, { "orange", "orange" }, { "grape", "green" } }; String [] column = { "fruit", "color" }; JTable table = new JTable ( value, column ); if ( table.getCellSelectionEnabled () ) { System.out.println ( "Cell can selection." ); }