import jcurses.system.CharColor;
import jcurses.widgets.*;
public class JcursesTest
{
   public static void main(String[] args) throws Exception
   {
       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(); // reset the native console
   }
}

