package org.thdl.savant; import java.awt.*; import java.util.*; import javax.swing.*; import javax.swing.text.*; import java.awt.event.MouseListener; public class TextHighlightPlayer extends JPanel implements AnnotationPlayer { protected JTextComponent text; protected Hashtable hashStart, hashEnd, highlights; protected Highlighter highlighter; protected Highlighter.HighlightPainter highlightPainter; public TextHighlightPlayer(TranscriptView view, Color highlightcolor) { text = view.getTextComponent(); text.setEditable(false); MouseListener[] mls = (MouseListener[])(text.getListeners(MouseListener.class)); for (int i=0; i