import jcurses.*;
import jcurses.system.CharColor;
import jcurses.widgets.*;
class colorText {
public static void main(String[] args) {
Window w = new Window(40, 20, true, "Hello World Window");
DefaultLayoutManager mgr = new DefaultLayoutManager();
mgr.bindToContainer(w.getRootPanel());
mgr.addWidget(new Label("Hello World!", new CharColor(CharColor.WHITE, CharColor.GREEN)), 0, 0, 40, 20, WidgetsConstants.ALIGNMENT_CENTER, WidgetsConstants.ALIGNMENT_CENTER);
w.show();
Thread.currentThread().sleep(5000);
w.close();
}
}