Article View: borland.public.jbuilder.java.swing
Article #11446Re: .ico files ?
From: Steve Horsley
Date: Tue, 01 Jun 1999 00:00
Date: Tue, 01 Jun 1999 00:00
32 lines
1653 bytes
1653 bytes
I confirm that. I tried with a .ico file, and my icon was a black square. Use a .gif or .jpeg file, and it works a treat. I noticed that the file need not be 32x32, any size image will do, and gets reduced to the correct size when being displayed. I seem to remember that the documentation for getImage says it can only do gif and jpeg files. Steve. //---------------------------------- Matt Krevs wrote: > > I'm not sure, but I have a feeling that the .ico format is Windows specific > and hence not supported in Java. You can try > > setIconImage( Toolkit.getDefaultToolkit().getImage(iconfilename) ); > > but I have a feeling you'll have to change your .ico file to a .gif file > before things will work. SHouldnt be too hard. > > Any graphics experts out there that know for sure? > > Sohan Mendis <sohan@maxtrak.com> wrote in message > news:7itcic$d5c4@forums.borland.com... > > I can set .gif but when it comes to .ico as in VB ..... > > > > How can I set .ico file appear in Frame top left hand corner . > > > > Sohan > > > >
Technical Details
Message-ID:
<375394EB.B73D07B2@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7itcic$d5c4@forums.borland.com> <7iv35d$epo1@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,91612ccecbe80f79 X-Google-Attributes: gid111d45,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: .ico files ? Date: 1999/06/01 Message-ID: <375394EB.B73D07B2@cwcom.co.uk> X-Deja-AN: 484378790 Content-Transfer-Encoding: 7bit References: <7itcic$d5c4@forums.borland.com> <7iv35d$epo1@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Cable & Wireless Communications Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing