B4J Question Colors is not defined

MathiasM

Active Member
Licensed User
Hello

I try to set a textbox.TextColor = Colors.Black.
But the IDE shows an error on Colors.Black because Colors is not defined.
How do I enable the Colors functionality?

Thank you!
 

aeric

Expert
Licensed User
Longtime User
Colors only available in B4A.
For cross platform (B4A, B4i and B4J), use XUI library.
Example:
B4X:
textbox.TextColor = XUI.Color_Black

For B4J specific, you can use JFX.
Example:
B4X:
textbox.TextColor = FX.Colors.Black
 
Upvote 1
Top