RSyntaxTextArea always showing white color for number column

106 Views Asked by At

enter image description here

If someone can help with this issues please

1

There are 1 best solutions below

0
On

The easiest way to do this is to load an XML theme. Since your application already has a dark theme, this will be suitable for you

try {
          InputStream in = getClass().getResourceAsStream("/org/fife/ui/rsyntaxtextarea/themes/dark.xml");
          Theme theme = Theme.load(in);
          theme.apply(txaIDE);//WHERE txaIDE IS YOUR RSYNTAXTEXTAREA INSTANCE
      } catch (Exception e) {
          JOptionPane.showMessageDialog(rootPane, e.toString());
      }

I hope this helps