Microsoft Visual J++. Java


- 2


//

if (!m_fAllLoaded)

return;

 

//

g.drawImage(m_Images[m_nCurrImage],

(size().width - m_nImgWidth) / 2,

(size().height - m_nImgHeight) / 2, null);

 

//

g.drawString((new Integer(m_nCurrImage)).toString(),

(size().width - m_nImgWidth) / 2,

((size().height - m_nImgHeight) / 2) + 10);

}

 

// -------------------------------------------------------

// paint

// paint,

// -------------------------------------------------------

public void paint(Graphics g)

{

//

Dimension dimAppWndDimension = size();

//

g.setColor(Color.white);

//

g.fillRect(0, 0,

dimAppWndDimension.width - 1,

dimAppWndDimension.height - 1);

 

//

g.setColor(Color.black);

 

//

g.drawRect(0, 0,

dimAppWndDimension.width - 1,

dimAppWndDimension.height - 1);

 

// ,

//

if (m_fAllLoaded)

{

displayImage(g);

}

// ,

//

else

g.drawString(", ...",

10, dimAppWndDimension.height / 2);

}

 

// -------------------------------------------------------

// start

//

// -------------------------------------------------------

public void start()

{

if (m_CDRotation == null)

{

m_CDRotation = new Thread(this);

m_CDRotation.start();

}

}

// -------------------------------------------------------