Example usage for javax.swing JLayer repaint

List of usage examples for javax.swing JLayer repaint

Introduction

In this page you can find the example usage for javax.swing JLayer repaint.

Prototype

public void repaint() 

Source Link

Document

Repaints this component.

Usage

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();
}