Article View: borland.public.jbuilder.java.api
Article #3316changing the contents of a Panel at runtime
From: Michael Hunter
Date: Wed, 18 Feb 1998 00:00
Date: Wed, 18 Feb 1998 00:00
39 lines
1719 bytes
1719 bytes
I would like to change the contents of a Panel at runtime, so that a
different form displays depending on which menu item the user picks: if
they pick "Xyz", the corresponding panel appears. If they then pick "Abc",
Xyz disappears and Abc replaces it.
I tried the following code:
void menuEntryRetax_actionPerformed(ActionEvent e) {
this.setTitle("Real Estate Taxes - " + PLAN_YEAR);
EntryRetax theWin = new EntryRetax();
panelData.add(theWin, BorderLayout.NORTH);
}
but the new panel didn't show up. What am I doing wrong?
Michael Hunter
Humbug_Reality@csi.com
"But what can we do? We can't do anything to show what we could do if only
we had the power we haven't got."
-- Ladies Clarice and Cora of Gormenghast
'************************************************************
Visit the ActiveCAD Pages at
http://ourworld.compuserve.com/homepages/Humbug_Reality/ActiveCAD/index.htm!
'************************************************************
begin 666 Michael Hunter.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DAU;G1E<CM-:6-H865L#0I&
M3CI-:6-H865L($AU;G1E<@T*14U!24P[4%)%1CM)3E1%4DY%5#I(=6UB=6=?
M4F5A;&ET>4!C<VDN8V]M#0I2158Z,3DY.# R,3E4,#,P-3$P6@T*14Y$.E9#
%05)$#0H`
`
end
end
Technical Details
Message-ID:
<6cg7i6$2936@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,daaffe7081602d1d,start X-Google-Attributes: gid1089d0,public From: "Michael Hunter" <Humbug_Reality@compuserve.com> Subject: changing the contents of a Panel at runtime Date: 1998/02/18 Message-ID: <6cg7i6$2936@forums.borland.com> X-Deja-AN: 326448662 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Newsgroups: borland.public.jbuilder.java.api