Package

Source Code of colorText

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();
 
  }
TOP

Related Classes of colorText

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.