There is a JTable
with DefaultTableModel
.
There is table\'s setforeground
, setbackground
and setselectioncolor
You can use any of the following keys in UIManager.put() to affect the corresponding Border
:
For example:
UIManager.put("Table.focusCellHighlightBorder",
new BorderUIResource(BorderFactory.createLineBorder(Color.red)));
You can also change the color in your custom renderer/editor; PositiveIntegerCellEditor is an example. See also Concepts: Editors and Renderers.