> I want to import an external CSS-file but the defined color of the
> styles are not displayed (always black is taken).
>
> Does anyone can give me a hint, why this problem occurs?
Maybe the CSS syntax is wrong, maybe something else is wrong. Please
post a complete compilable example.
> As I read in the documentation, the attributes white-space and
> text-indent are not rendered. Does anyone know a workaround, because
[quoted text clipped - 14 lines]
>
> StyleSheet ss = ((HTMLDocument)pane.getDocument()).getStyleSheet();
^^
It may not be a good idea to do it this way as setPage modifies the
Document asynchronously. I'd change this in the EditorKit.
> try
> {
> styles.importStyleSheet(getClass().getResource("/myCSSFile.css"));
^^^^^^
Is this your real code?
Christian