Beispiel #1
0
 public SwingContent(int initialSize) {
   CharBuffer b = new CharBuffer(initialSize);
   // Swing assumes that a Content object is initialized to contain
   // a single '\n'.  This of course is not clearly documented ...
   b.gapEnd = initialSize - 1;
   b.getArray()[b.gapEnd] = '\n';
   this.buffer = b;
 }