2

As a newbee of MPS I try to set different colors for finished items within a small todo list. I have a boolean properties attribute "finished" and want to return the color values - but I cannot use a named color or the java Color class. Surely I forgot something - can anyone tell me what to do?

enter image description here

Thank you very much for any answer!

Christian
  • 576
  • 1
  • 4
  • 16

1 Answers1

3

Just return the constants defined in java.awt.Color. You need to import the java.awt@stub model first (Control + M).

Vaclav Pech
  • 1,431
  • 8
  • 6
  • That was it - thank you very much! I think I tries it with setting the java.awt@stub language as a "used language", not as a dependency. Maybe you can tell me a site the difference is explained in? – Christian May 22 '19 at 21:07
  • @Christian: This is a different question. Create a new question and share it with the community. – Peter Jun 19 '19 at 09:42