How to print lines slowly in Java?(and a few other questions)

3 posts

Flag Post

AKA, it prints a line, waits for a sec or so, then prints another line.

As for the other questions..

If I don’t make a GUI, is it possible to change the BG color? aka to black?
How do I change the text color?
EDIT: Also, how do I change the font size?
Thanks in advance.

P.S I use Netbeans.

 
Flag Post

bump Answer please? :P

 
Flag Post

Don’t know anything about the GUI of netbeans but to print out a line one second at a time:

try
{
String [] strings = ....; 
for(String s : strings)
{
Thread.wait(1000);
System.out.println(s);
}
catch(InterruptedException e)
{
System.err.println("Interrupted!");
}
}