Пример #1
0
 public void focusLost(FocusEvent e) {
   // We will still paint focus even if lost temporarily
   focusLostTemporarily = e.isTemporary();
   if (!focusLostTemporarily) {
     comp.repaint();
   }
 }
Пример #2
0
 public void focusGained(FocusEvent e) {
   comp.repaint();
 }