Article View: borland.public.jbuilder.java.language
Article #7761RE: new component
From: facundo
Date: Wed, 23 May 2001 18:30
Date: Wed, 23 May 2001 18:30
28 lines
1939 bytes
1939 bytes
John McGrath [TeamB] <ng-b@JPMcGrath.net> escribi๏ฟฝ en el mensaje de noticias MPG.1574a214f95b8adb98a212@forums.borland.com... > On Tue, 22 May 2001 11:59:52 -0300, facundo wrote: > > > Now I was able to show my new button at run time. > > But I did It writing: this.pack(); > > Is this rigth? > > If that is what you want to do. The pack() method is rather similar to > validate(), except that pack will size the frame based on the sizes of > the contents, whereas validate will use the size of the frame. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html But when I use validate(), nothing happend in my program. I had to put the size of the the frame, because I don't want it to change and then call pack(). And so I can refresh the frame. If it the same I can do it this way. My question was because I thought that perhaps this method was more slow.
Technical Details
Message-ID:
<3b0c0132_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b054d39_1@dnews> <3b0a7e6c_1@dnews> <MPG.1574a214f95b8adb98a212@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,731295f9facb01cf X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-23 11:48:01 PST From: "facundo" <fakkundo@hotmail.com> Newsgroups: borland.public.jbuilder.java.language References: <3b054d39_1@dnews> <3b0a7e6c_1@dnews> <MPG.1574a214f95b8adb98a212@forums.borland.com> Subject: RE: new component Date: Wed, 23 May 2001 15:30:18 -0300 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 NNTP-Posting-Host: 200.32.13.186 Message-ID: <3b0c0132_1@dnews> X-Trace: dnews 990642482 200.32.13.186 (23 May 2001 11:28:02 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews