Article View: borland.public.jbuilder.java.language
Article #18723Re: how do I change the icon in the title bar of my Frame/Dialog?
From: Alex Humphreys
Date: Mon, 04 May 1998 00:00
Date: Mon, 04 May 1998 00:00
27 lines
1602 bytes
1602 bytes
nevermind. Figured it out: use ImageLoader.
Thanks again.
Alex Humphreys wrote:
> Thanks. Works great. But now it only works when I use
> setIconImageName("path") where path is the complete drive path (i.e.
> D:\JBuilder\myclasses\mygif.gif).
>
> Is there a way to keep mygif.gif in the classpath (or somewhere) and have the
> application still find it? I can't guarantee that my users will install my
> program to the same directory that I will....
>
> Thanks.
>
> Oyvind L Johansen wrote:
>
> > It works fine for me when I set the iconImageName property in the inspector
> > using a .gif.
> >
> > Alex Humphreys wrote in message <354DBFE2.ED932F59@sema4.com>...
> > >Is there a way to change the icon that's in the title bar of my Frame or
> > >Dialog from that little Java cup to something I design? If so, how?
> > >I've tried the setIconImageName(path) method, but can't seem to get it
> > >to work--do I use a .gif? and .ico?
Technical Details
Message-ID:
<354E30A9.DEBE5A37@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<354DBFE2.ED932F59@sema4.com> <6ikrpq$r6s12@forums.borland.com> <354E1DEC.85E27D41@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,385503b04442c818 X-Google-Attributes: gidf74b3,public From: Alex Humphreys <ahumphreys@sema4.com> Subject: Re: how do I change the icon in the title bar of my Frame/Dialog? Date: 1998/05/04 Message-ID: <354E30A9.DEBE5A37@sema4.com> X-Deja-AN: 350221657 Content-Transfer-Encoding: 7bit References: <354DBFE2.ED932F59@sema4.com> <6ikrpq$r6s12@forums.borland.com> <354E1DEC.85E27D41@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