X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=demos%2FDemo1.java;h=1270dae10ed81ca88bf9f93a444739efc1901002;hb=fca67db090dc7e6476b98b800ce225c2bf60425c;hp=29d03455577fb7204ac20133d3e94cb92159a421;hpb=a06459bd6b0e65c9b590dbdf6ed9349043119215;p=fanfix.git diff --git a/demos/Demo1.java b/demos/Demo1.java index 29d0345..1270dae 100644 --- a/demos/Demo1.java +++ b/demos/Demo1.java @@ -67,20 +67,24 @@ class DemoMainWindow extends TWindow { } */ - /// Constructor + /** + * Construct demo window. It will be centered on screen. + */ public DemoMainWindow(TApplication parent) { this(parent, CENTERED | RESIZABLE); } - /// Constructor - public DemoMainWindow(TApplication parent, int flags) { + /** + * Constructor. + */ + private DemoMainWindow(TApplication parent, int flags) { // Construct a demo window. X and Y don't matter because it will be // centered on screen. super(parent, "Demo Window", 0, 0, 60, 23, flags); + /* int row = 1; - /* // Add some widgets if (!isModal) { addLabel("Message Boxes", 1, row); @@ -186,6 +190,11 @@ class DemoApplication extends TApplication { public DemoApplication() throws Exception { super(null, null); new DemoMainWindow(this); + TWindow window2 = new DemoMainWindow(this); + window2.setHeight(5); + window2.setWidth(25); + window2.setX(17); + window2.setY(6); } }