Article View: borland.public.jbuilder.java.swing
Article #12988Re: getParent-Problem
From: Richard Wilkman
Date: Thu, 15 Oct 1998 00:00
Date: Thu, 15 Oct 1998 00:00
46 lines
1728 bytes
1728 bytes
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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<36260F04.F2837F52@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3625EF47.4C3D5403@ppi.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,432bd929d163a02 X-Google-Attributes: gid111d45,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: getParent-Problem Date: 1998/10/15 Message-ID: <36260F04.F2837F52@inprise.com> X-Deja-AN: 401373717 Content-Transfer-Encoding: 7bit References: <3625EF47.4C3D5403@ppi.de> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing