vralfy/phpcsmd

Fields "Script location" are getting my white foreground color

fonsecas72 opened this issue · 4 comments

also

field.setBackground(Color.red);

Isn't changing the background.

print:
Screenshot from 2013-04-03 19:07:21

I also mentioned that with my system the background isn't changing.
My system:

  • Netbeans 7.3;
  • Ubuntu 12.04;
  • java version "1.6.0_27"
    OpenJDK Runtime Environment (IcedTea6 1.12.3) (6b27-1.12.3-0ubuntu1~12.04.1)
    OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode);

What happens is that if file is invalid the path gets white but the background still white (should be red)

This may be a compatibly with Ubuntu/GTK problem. Maybe you should use just:

field.setForeground(Color.RED);

If the file doesn't exists.

I've just the same Mashine as yours and it works for me ...
I've just set the background to yellow and the foreground to red. I hope everyone is happy now :D

Sometimes I hate GUI Programming