LISTING 2: Instance Data for the Extended Project

// current x and y positions

private int m_nImgX = 0;

private int m_nImgY = 0;

// previous x and y positions

private int m_nImgXprev = 0;

private int m_nImgYprev = 0;

// current x and y movement vectors

private int m_incX = -1;

private int m_incY = -1;

// range of the applet

private Dimension m_rng;