×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Iqbal Cáceres Sánchez
Added: Aug 30, 2016 3:28 PM
Modified: Aug 30, 2016 3:29 PM
Views: 9
Tags: no tags
isSelected en DefaultTableCellRenderer
  1. if(!isSelected){
  2.              
  3. }else{
  4.    c.setBackground(table.getSelectionBackground());
  5.    c.setForeground(table.getSelectionForeground());
  6. }