| getSelectionForeground() | ใช้คืนค่า สีตัวอักษร ของ cell ที่ถูกเลือก ของ object JTable |
|---|
method:getSelectionForeground ();
return type:Color
content:ใช้คืนค่า สีตัวอักษร ของ cell ที่ถูกเลือก ของ object JTable
example:String [][] value = { { "apple", "red" }, { "orange", "orange" }, { "grape", "green" } }; String [] column = { "fruit", "color" }; JTable table = new JTable ( value, column ); Color color_text = table.getSelectionForeground ();