this.setLocationRelativeTo(null); Kind regards,
Alberto A.Smulders HostDat Lda. - Portugal -------- Original-Nachricht -------- Datum: Mon, 18 Sep 2006 14:54:07 +0200 Von: [EMAIL PROTECTED] An: [email protected] Betreff: [ULC-developer] Problem centering ULCDialog in 6.1.1 > > Hi, > > we have a custom Alert-Dialog extending ULCDialog. > The following problem occured after migrating our application to ULC > 6.1.1: > > The Dialog is not centered by default anymore and displayed in the left > upper corner. > Trying to center it by using the getWidth- and getHeight-methods to > calculate the screencenter does not work, because both methods return 0. > > We have not set the size, because we never know in advance how many > textfields, labels or text will be displayed. > > After the dialog is set to visible there is still no valid size set > automatically. > > Is there any chance to get the dialog centered without setting a size > ourselfes? > > > Viele Grüße, > Daniel Backhausen > > -- > MT AG - managing technology > Stadionring 16 > 40878 Ratingen > > Dipl.-Ing. Daniel Backhausen > > Telefon +49 (0) 21 02 309 61-0 > Telefax +49 (0) 21 02 309 61-20 > Mobil +49 (0) 0173 59 42 795 > > e-mail mailto:[EMAIL PROTECTED] > internet http://www.mt-ag.com > > _______________________________________________ > ULC-developer mailing list > [email protected] > http://lists.canoo.com/mailman/listinfo/ulc-developer -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
