All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gnu.x11.test.Hello2 Maven / Gradle / Ivy

Go to download

Escher is a collection of libraries for X Window System written purely in Java.

The newest version!
package gnu.x11.test;


/** 
 * Hello World. Based on {@link Graphics}.
 *
 * @see 
 * screenshot
 * 
 * @see 
 * help output
 * 
 * @see Hello
 */
public class Hello2 extends Graphics {
  public Hello2 (String [] args) {
    super (args, 100, 50);

    about ("0.1", "hello world",
      "Stephen Tse ",
      "http://escher.sourceforge.net/");

    if (help_option) return;
  }


  public void paint () {
    window.text (display.default_gc, 20, 30, "Hello World!");
    display.flush ();
  }


  public static void main (String [] args) { 
    new Hello2 (args).exec ();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy