Article View: borland.public.jbuilder.java.language
Article #18640Re: can I change a Dialog icon?
From: Rich Wilkman
Date: Tue, 12 May 1998 00:00
Date: Tue, 12 May 1998 00:00
70 lines
2815 bytes
2815 bytes
Alex:
Well, that's how it's supposed to work. You might check the BugParade
at Javasoft -- something is tickling the back of my brain saying this
might be one of those "works everywhere but Windows" bugs.
-Rich
Alex Humphreys wrote:
>
> 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
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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:
<3558BB52.47407624@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com> <3558993B.CC3D0BAF@sema4.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: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: can I change a Dialog icon? Date: 1998/05/12 Message-ID: <3558BB52.47407624@corp.borland.com> X-Deja-AN: 352664649 Content-Transfer-Encoding: 7bit References: <355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com> <3558993B.CC3D0BAF@sema4.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language