|
From: Francois B. <fb...@us...> - 2003-10-22 20:44:37
|
Hello again, Stelar, Did you use the same command line ? Actually, did you pass the --show argument to the BuildWindowFromXmlFile class ? Notice the example command line: C:\jgb>bin\runexample.bat --show mywindow.xml The --show parameter asks the BuildWindowFromXmlFile to show the window on screen. It actually calls setVisible() on the value that will be returned from Builder. Hope that helps ! Fran=E7ois On Wed, 22 Oct 2003 22:23:51 +0800, "Stelar" <ste...@in...> said: > On Wednesday 22 October 2003 02:04 am, Francois Beausoleil wrote: > > Hi ! > > > > This is normal. When did you ask the window to be shown ? :) You need > > one of the following: > > * set the visible property to true > > * retrieve the window reference from Builder and call setVisible(true) > > > > Builder will not show anything by itself. It's responsibility is to > > build windows, nothing else. This makes it possible to use Builder to > > build a multitude of windows, and have none of them show up on screen. > > Then, later, the windows can be shown as appropriate, by the event > > dispatchers. > > > > Hope that helps ! > > Fran=E7ois >=20 > Ahh... I understand... I'm actually newbie to java, so I'm not that > familiar=20 > with it. But the tutorial in the website is a little misleading, because > for=20 > the "Simple Window Tutorial", in the "Warrior's Luck" section, there's no= =20 > setVisible methodCall, but the paragraph says that "You have a window > that=20 > pops up on your screen". You might want to update that :) >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > jgb-general mailing list > jgb...@li... > https://lists.sourceforge.net/lists/listinfo/jgb-general Developer of Java Gui Builder http://jgb.sourceforge.net/ |