!7 sclass PrintBuffers extends DynBigNumber { void start { super.start(); setDescription("PRINT BUFFERS"); ownTimer(doEveryAndNow(5.0, r actualUpdate)); } void actualUpdate { Set set = asSet(allPrintBuffers()); //totalByteSizeOfCharSequences(set) long n = totalByteCapacityOfStringBuffers_generic(set); setValue(toK(n) + " K, " + n2(set, "buffer")); } JComponent visualize() { ret withCenteredButtons(super.visualize(), "Trim", r trimAllPrintBuffers, "Clear", r clearAllPrintBuffers); } }