+ 3

How to print colourful output in java ? What library should we need .????

Que....

3rd Feb 2020, 3:22 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
5 Respostas
0
not on Sololearn for console output there are ANSII escape codes System.out.println("\033[31;1mHello\033[0m, \033[32;1;2mworld!\033[0m"); // red, blue http://www.santhoshreddymandadi.com/java/coloring-java-output-on-console.html with GUI - in some window, use Swing or Javafx modul
3rd Feb 2020, 7:17 AM
zemiak
+ 1
You mean console ?
3rd Feb 2020, 3:54 AM
Pedro H.J
Pedro H.J - avatar
0
No i want to print hello text in color so what graphic file i need
3rd Feb 2020, 4:04 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Thanks
3rd Feb 2020, 7:38 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
Swing You set color label: title.setForeground(Color.white) ; See this tutorial with IDE Netbeans https://youtu.be/LFr06ZKIpSM
3rd Feb 2020, 11:49 AM
Pedro H.J
Pedro H.J - avatar