public void focusLost(FocusEvent e) { // We will still paint focus even if lost temporarily focusLostTemporarily = e.isTemporary(); if (!focusLostTemporarily) { comp.repaint(); } }
private void dispatchEvent(MouseEvent me) { Component src = me.getComponent(); comp.dispatchEvent(SwingUtilities.convertMouseEvent(src, me, comp)); src.repaint(); }
public void focusGained(FocusEvent e) { comp.repaint(); }