Немного Java - и страница ожила



Листинг 2


public class MyApplet extends Applet { DrawPoints m_DrawPointsThread = null; DrawLines m_DrawLinesThread = null; . . . public void start() { if (m_DrawPointsThread == null) { m_DrawPointsThread = new DrawPoints(this); m_DrawPointsThread.start(); } if (m_DrawLinesThread == null) { m_DrawLinesThread = new DrawLines(this); m_DrawLinesThread.start(); } } }




Содержание  Назад  Вперед