0

How can i get colour in java?

15th Jan 2018, 12:22 PM
Akrem Raba Oui
Akrem Raba Oui - avatar
3 Respuestas
+ 17
System.out.println( java.awt.Color.getColor( "black", Color.red ) ); Of you run this code it prints no output... Because there's no GUI.
15th Jan 2018, 12:39 PM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 3
If your using mobile you cant get colour theres no gui
15th Jan 2018, 12:32 PM
D_Stark
D_Stark - avatar
0
What do you mean by colour? If you are referring to a GUI with Buttons,Sliders,Tables,etc then you will have to program on a desktop with something like JavaFx or Swing.
15th Jan 2018, 1:04 PM
Gamer