1 29 30 package nextapp.echo2.app.test; 31 32 import nextapp.echo2.app.ApplicationInstance; 33 import nextapp.echo2.app.ContentPane; 34 import nextapp.echo2.app.Label; 35 import nextapp.echo2.app.Window; 36 37 40 class HelloWorldApp extends ApplicationInstance { 41 42 public Window window; 43 public ContentPane content; 44 public Label label; 45 46 49 public Window init() { 50 window = new Window(); 51 content = window.getContent(); 52 label = new Label("Hello, world!"); 53 content.add(label); 54 return window; 55 } 56 57 60 public Label getLabel() { 61 return label; 62 } 63 64 67 public ContentPane getContent() { 68 return content; 69 } 70 } | Popular Tags |