X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib_java.git/blobdiff_plain/d9112cf5bc9cd4ee1b39a50c0154a5b219f66c7c..2bf0d02e7c40d2b3af46579ffc8e9e04f58944d0:/Hello.java diff --git a/Hello.java b/Hello.java index 53bcf05..51dd9f5 100644 --- a/Hello.java +++ b/Hello.java @@ -1,9 +1,11 @@ public class Hello { public static void main(String[] args) { + // Création d'une fenêtre avec, en paramètres, son titre, sa + // largeur et sa hauteur DrawingWindow w = new DrawingWindow("Exemple 1", 640, 480); + // Affichage d'un court message au milieu de la fenêtre w.drawText(w.width / 2, w.height / 2, "Hello world!"); } - -} \ No newline at end of file +}