Files
VisualSapfor/src/Common_old/UI/Tables/HyperlinksRenderer.java

16 lines
593 B
Java
Raw Normal View History

package Common_old.UI.Tables;
import Common_old.UI.List.HyperlinksStyledList;
2023-09-17 22:13:42 +03:00
import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;
import java.util.Vector;
public class HyperlinksRenderer extends HyperlinksStyledList implements TableCellRenderer {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
setListData((Vector) value);
return this;
}
}