|
From: Francois B. <fb...@us...> - 2003-10-27 18:02:06
|
Got a point there ! There is no way to do any calculations in the XML file, so you would need to instantiate an object to do the work for you. Maybe you could attach a WindowListener to the frame and let it position the window on the right event ? Besides, the same event listener can be used to save and restore the window position... Hope that helps ! Fran=E7ois On Mon, 27 Oct 2003 21:14:41 +0800, "Stelar" <ste...@in...> said: > Can a JFrame be placed in the center of the screen? It can be done in > Java,=20 > using the getScreenSize() and setLocation(). But I tried to think on how > to=20 > do it in jgb and I can't.... >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > jgb-general mailing list > jgb...@li... > https://lists.sourceforge.net/lists/listinfo/jgb-general Developer of Java Gui Builder http://jgb.sourceforge.net/ |