Article View: borland.public.jbuilder.java.language
Article #18639Re: can I change a Dialog icon?
From: Alex Humphreys
Date: Tue, 12 May 1998 00:00
Date: Tue, 12 May 1998 00:00
45 lines
1966 bytes
1966 bytes
Really? It doesn't seem to be working that way for me. Here's the code in my
main_Frame class.
this.setIconImage(ImageLoader.loadFromResource("icon.gif", this));
login_Dialog login_Dialog = new login_Dialog(this, "Login", true);
login_Dialog.setVisible(true);
For some reason, the Frame gets the icon.gif as it's icon but the Dialog just
gets the java cup. What am I doing wrong?
Thanks for your help.
-alex
Rich Wilkman wrote:
> Alex:
>
> That method exists for Frames only (Dialog comes from Window). A
> dialog get's it's icon from the Frame it's parented from, so if you
> set the icon on the parent Frame your dialog should show it.
>
> -Rich
>
> Alex Humphreys wrote:
> >
> > Is it possible to change the icon of dialog windows or just frames?
> > Whenever I try using setIconImage(...) I'm told the method doesn't exist
> > for dialog....
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 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:
<3558993B.CC3D0BAF@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d54d3e9ce964195a X-Google-Attributes: gidf74b3,public From: Alex Humphreys <ahumphreys@sema4.com> Subject: Re: can I change a Dialog icon? Date: 1998/05/12 Message-ID: <3558993B.CC3D0BAF@sema4.com> X-Deja-AN: 352624085 Content-Transfer-Encoding: 7bit References: <355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language