Article View: borland.public.jbuilder.java.language
Article #18646Re: can I change a Dialog icon?
From: Alex Humphreys
Date: Wed, 13 May 1998 00:00
Date: Wed, 13 May 1998 00:00
75 lines
3102 bytes
3102 bytes
The tickle was justified. Bug #4094035. Supposedly fixed in 1.1.7. Guess I'll
have to be patient. Thanks.
Rich Wilkman wrote:
> 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:
<3559B800.3431D3E0@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com> <3558993B.CC3D0BAF@sema4.com> <3558BB52.47407624@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/13 Message-ID: <3559B800.3431D3E0@sema4.com> X-Deja-AN: 352895119 Content-Transfer-Encoding: 7bit References: <355755A2.AB3A07D3@sema4.com> <35576173.EF400456@corp.borland.com> <3558993B.CC3D0BAF@sema4.com> <3558BB52.47407624@corp.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language