Article View: borland.public.jbuilder.java.swing
Article #12911Re: getParent-Problem
From: Katharina Schade
Date: Mon, 19 Oct 1998 00:00
Date: Mon, 19 Oct 1998 00:00
61 lines
2123 bytes
2123 bytes
Hi Rich, frame extends from DecoratedFrame and the dialog from JDialog. I think the JDialog is the problem!!!? Richard Wilkman schrieb: > Katharina: > > What kind of object is 'frame' in your cast. One or more of the items > you are using has likely switched parents to use JFC and you have a > type mis-match in the cast (hence the error). > > -Rich > > Katharina Schade wrote: > > > > Hi anyone, > > > > under JBuilder 1.0 I used in a dialog getParent to access a method > > from a parent-frame. > > > > Score = ((frame)getParent()).getChoice(); > > > > Running this under JBuilder2.0 I get the Error: > > java.lang.ClassCastException: com.sun.java.swing.SwingUtilities. > > > > What is wrong? > > > > -- > > Katharina Schade > > Pape + Partner Informationssysteme GmbH > > Graumannsweg 54 > > D-22087 Hamburg > > Tel.: +49(40)22743349 > > Fax: +49(40)22743333 > > Mailto:ks@ppi.de > > > > -- > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > Rich Wilkman > Senior Quality Assurance Engineer > Borland JBuilder Team > > If you see something that looks like an opinion up there, > it's mine and mine alone. > > Mail sent to me from the newsgroups won't bounce but will > be ignored. If I have time, I'll respond, but you have > a better chance if you confine your posts to the newsgroups > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- Katharina Schade Pape + Partner Informationssysteme GmbH Graumannsweg 54 D-22087 Hamburg Tel.: +49(40)22743349 Fax: +49(40)22743333 Mailto:ks@ppi.de
Technical Details
Message-ID:
<362B46B7.F1F7998E@ppi.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3625EF47.4C3D5403@ppi.de> <36260F04.F2837F52@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,432bd929d163a02 X-Google-Attributes: gid111d45,public From: Katharina Schade <ks@ppi.de> Subject: Re: getParent-Problem Date: 1998/10/19 Message-ID: <362B46B7.F1F7998E@ppi.de> X-Deja-AN: 402811538 Content-Transfer-Encoding: 7bit References: <3625EF47.4C3D5403@ppi.de> <36260F04.F2837F52@inprise.com> Content-Type: text/plain; charset=us-ascii Organization: Pape + Pape Informationssysteme Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing