| getColumnCount() | ใช้คืนค่า จำนวนคอลัมน์ ทั้งหมด ของ object JTable |
|---|
method:getColumnCount ();
return type:int
content:ใช้คืนค่า จำนวนคอลัมน์ ทั้งหมด ของ object JTable
example:String [][] value = { { "apple", "red" }, { "orange", "orange" }, { "grape", "green" } }; String [] column = { "fruit", "color" }; JTable table = new JTable ( value, column ); int num_column = table.getColumnCount ();