title: Java FX: Partly change the color in a ListView?
body: <p>I have a ListView, containing folder paths, which display the folders which were added to the program.</p>
  <p>I now, want to add a word in each entry, depending on if the folder is encrypted, I want to add the word 'encrypted' in green for example.</p>
  <p>I tried adding a String with html color tags, however that does not work.</p>
  <pre><code>if (loadedFolders != null) {
      ObservableList&lt;String&gt; list = controller.folderList.getItems();
      for (int i = 0; i &lt; list.size(); i++) {
          
          StringBuilder read = new StringBuilder();
          read.append(list.get(i)).append(&quot;&lt;html&gt;&lt;font color='red'&gt;test&lt;/font&gt;&lt;/html&gt;&quot;);
          controller.folderList.getItems().set(i, read.toString());
      }
  }
  </code></pre>
  <p>Importantly, only the added word should have a different color, the rest stays plain.</p>