+ 3
How to print colourful output in java ? What library should we need .????
Que....
5 Respuestas
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
+ 1
You mean console ?
0
No i want to print hello text in color so what graphic file i need
0
Thanks
0
Swing
You set color label:
title.setForeground(Color.white) ;
See this tutorial with IDE Netbeans
https://youtu.be/LFr06ZKIpSM