!7 sclass FindSections > DynPrintLog { void start { L l = allSwingComponentsOfType(JPanel.class); for (JPanel p : l) if (eq(className(p), "main$JSection")) { S title = (S) call(p, 'getTitle); print("Section found: " + title); if (eqicOneOf(title, "log", "system log")) { JTextArea ta = childOfType(p, JTextArea); if (ta == myPrintLogComponent()) continue; printIndent(takeFirstLines(2, getText(ta))); clearTextArea(ta); print("CLEARED"); } } } }