ignature"><span class="return-type">void</span>&nbsp;<span class="element-name">set</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;contents)</span></div>
<div class="block">Replace the contents of the editor with the specified text.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>contents</code> - The new content as a plain string.</dd>
</dl