//SparklineGraph needs at least 2 values, duplicate the only one we have to get a sparkline with a single line showing that the value does not change over time
xValues=null;
yValues=newNumber[]{yValues[0],yValues[0]};
}
JLabellabel=newJLabel();
Colorbackground;
if(isSelected){
background=SELECTED_BACKGROUND;
}else{
background=UNSELECTED_BACKGROUND;
}
//Note: Can't use interactive SparklineComponent because TableCellEditors don't receive mouse events.
//If there is less than 1 element, don't show anything.
if(yValues.length<1){
rendererLabel.setPainter(null);
return;
}
if(yValues.length==1){
//SparklineGraph needs at least 2 values, duplicate the only one we have to get a sparkline with a single line showing that the value does not change over time
xValues=null;
yValues=newNumber[]{yValues[0],yValues[0]};
}
Colorbackground;
if(isSelected){
background=SELECTED_BACKGROUND;
}else{
background=UNSELECTED_BACKGROUND;
}
//Note: Can't use interactive SparklineComponent because TableCellEditors don't receive mouse events.
* TableCellRenderer for representing float/doubles always with the english locale representation, and a limited precision, independently of user language, etc.
* SwingX converter for representing float/doubles always with the english locale representation, and a limited precision, independently of user language, etc.