TableColumnExt extends TableColumn implements UIDependent { public void setHighlighters(Highlighter... highlighters) { ignoreHighlighterStateChange = true; Highlighter[] old = getHighlighters(); getCompoundHighlighter().setHighlighters(highlighters); firePropertyChange("highlighters", old, getHighlighters()); ignoreHighlighterStateChange = false; } TableColumnExt();  TableColumnExt(int modelIndex);  TableColumnExt(int modelIndex, int width);  TableColumnExt(int modelIndex, int width,
                          TableCellRenderer cellRenderer, TableCellEditor cellEditor);  TableColumnExt(TableColumnExt columnExt); void setHighlighters(Highlighter... highlighters); Highlighter[] getHighlighters(); void addHighlighter(Highlighter highlighter); void removeHighlighter(Highlighter highlighter); @Override boolean getResizable(); void setEditable(boolean editable); boolean isEditable(); void setPrototypeValue(Object value); Object getPrototypeValue(); void setComparator(Comparator<?> comparator); Comparator<?> getComparator(); void setSortable(boolean sortable); boolean isSortable(); void setToolTipText(String toolTipText); String getToolTipText(); void setTitle(String title); String getTitle(); void setVisible(boolean visible); boolean isVisible(); void setHideable(boolean hideable); boolean isHideable(); void putClientProperty(Object key, Object value); Object getClientProperty(Object key); @Override void updateUI();  }
@Test public void testSetHighlighters() { PropertyChangeReport hcl = new PropertyChangeReport(); columnExt.addPropertyChangeListener(hcl); Highlighter h1 = new ColorHighlighter(); Highlighter h2 = new ColorHighlighter(); assertEquals(0, hcl.getEventCount()); assertSame(CompoundHighlighter.EMPTY_HIGHLIGHTERS, columnExt.getHighlighters()); columnExt.setHighlighters(h1); assertEquals(1, hcl.getEventCount()); assertEquals("highlighters", hcl.getLastProperty()); assertEquals(1, columnExt.getHighlighters().length); assertSame(h1, columnExt.getHighlighters()[0]); hcl.clear(); columnExt.removeHighlighter(h1); assertEquals(1, hcl.getEventCount()); assertEquals("highlighters", hcl.getLastProperty()); assertEquals(0, columnExt.getHighlighters().length); assertSame(CompoundHighlighter.EMPTY_HIGHLIGHTERS, columnExt.getHighlighters()); hcl.clear(); columnExt.setHighlighters(h1, h2); assertEquals(1, hcl.getEventCount()); assertEquals("highlighters", hcl.getLastProperty()); assertEquals(2, columnExt.getHighlighters().length); assertSame(h1, columnExt.getHighlighters()[0]); assertSame(h2, columnExt.getHighlighters()[1]); }