Logo Search packages:      
Sourcecode: jmk version File versions  Download package

void edu::neu::ccs::jmk::awt::MakeWindow::appendLine ( String  s  )  [inline, package]

This routine appends a line to the panel without breaking long lines. This routine should only be called by appendLongLine.

Parameters:
line the line to be appended

Definition at line 79 of file MakeWindow.java.

Referenced by appendLongLine().

                            {
    append(s + nl);
    setCaretPosition(Integer.MAX_VALUE);
    String area = getText();
    int n = area.length();    // Truncate saved text if needed
    if (n > MAX_TEXT_AREA) {
      int truncSize = area.indexOf('\n', n - TRUNCATED_TEXT_AREA);
      area = area.substring(truncSize);
      setText(area);
    }
  }


Generated by  Doxygen 1.6.0   Back to index