/** * Draws log entries to the screen * * @param g * the <code>Graphics</code> object to use for drawing. */ public void paint(Graphics g) { // Erase screen g.setColor(255, 255, 255); g.fillRect(0, 0, this.getWidth(), this.getHeight()); g.setColor(0, 0, 0); // Draw all lines int count = 1; for (int index = screenOffset; index < logStrings.size(); index++) { g.drawString(logStrings.elementAt(index).toString(), 0, count * lineSize, Graphics.BASELINE | Graphics.LEFT); count++; } }