Article View: borland.public.jbuilder.java.language
Article #7735RE: new component
From: facundo
Date: Mon, 21 May 2001 13:59
Date: Mon, 21 May 2001 13:59
24 lines
1631 bytes
1631 bytes
I've tried, but I still can see my new button. John McGrath [TeamB] <ng-b@JPMcGrath.net> escribi๏ฟฝ en el mensaje de noticias MPG.1570acc55d33b99898a1f5@forums.borland.com... > On Fri, 18 May 2001 13:28:11 -0300, facundo wrote: > > > How can I create a new component at run time? > > I've tried to writing this in MouseClick event of a button: > > > > JButton button2 = new JButton(); > > this.add(button2); > > > > but I can't see the button, I think I'm missing something. > > Try adding revalidate() after the add(). > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3b091edb_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3b054d39_1@dnews> <MPG.1570acc55d33b99898a1f5@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-21 07:01:04 PST From: "facundo" <fakkundo@hotmail.com> Newsgroups: borland.public.jbuilder.java.language References: <3b054d39_1@dnews> <MPG.1570acc55d33b99898a1f5@forums.borland.com> Subject: RE: new component Date: Mon, 21 May 2001 10:59:52 -0300 Lines: 26 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: <3b091edb_2@dnews> X-Trace: dnews 990453467 200.32.13.186 (21 May 2001 06:57:47 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews