Search in sources :

Example 6 with ColorHighlighter

use of org.jdesktop.swingx.decorator.ColorHighlighter in project com.revolsys.open by revolsys.

the class MergedRecordPredicate method add.

public static void add(final RecordRowTable table) {
    final MergedRecordsTableModel model = table.getTableModel();
    final MergedRecordPredicate predicate = new MergedRecordPredicate(model);
    final Highlighter colors = new ColorHighlighter(predicate, WebColors.newAlpha(WebColors.Green, 64), WebColors.Black, WebColors.Green, WebColors.White);
    table.addHighlighter(colors);
}
Also used : ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter) MergedRecordsTableModel(com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel) Highlighter(org.jdesktop.swingx.decorator.Highlighter) ColorHighlighter(org.jdesktop.swingx.decorator.ColorHighlighter)

Aggregations

ColorHighlighter (org.jdesktop.swingx.decorator.ColorHighlighter)6 MergedRecordsTableModel (com.revolsys.swing.map.layer.record.table.model.MergedRecordsTableModel)3 LayerRecordTableModel (com.revolsys.swing.map.layer.record.table.model.LayerRecordTableModel)1 BaseJTable (com.revolsys.swing.table.BaseJTable)1 Component (java.awt.Component)1 SortKey (javax.swing.RowSorter.SortKey)1 TableColumn (javax.swing.table.TableColumn)1 TableColumnModel (javax.swing.table.TableColumnModel)1 ComponentAdapter (org.jdesktop.swingx.decorator.ComponentAdapter)1 Highlighter (org.jdesktop.swingx.decorator.Highlighter)1