List of usage examples for javax.swing JLayer repaint
public void repaint()
From source file:TapTapTap.java
@Override public void applyPropertyChange(PropertyChangeEvent pce, JLayer l) { if ("tick".equals(pce.getPropertyName())) { l.repaint(); }/*w w w. j av a 2 s . co m*/ }
From source file:Diva.java
@Override protected void processMouseMotionEvent(MouseEvent e, JLayer l) { Point p = SwingUtilities.convertPoint(e.getComponent(), e.getPoint(), l); mX = p.x;/*from ww w . ja va2 s.c om*/ mY = p.y; l.repaint(); }
From source file:Diva.java
@Override protected void processMouseEvent(MouseEvent e, JLayer l) { if (e.getID() == MouseEvent.MOUSE_ENTERED) mActive = true;//from ww w.ja va 2 s . c o m if (e.getID() == MouseEvent.MOUSE_EXITED) mActive = false; l.repaint(); }