Article View: borland.public.jbuilder.java.swing
Article #1513Re: Images for buttons
From: Gillmer J. Derge (TeamB)
Date: Tue, 16 Dec 2003 16:58
Date: Tue, 16 Dec 2003 16:58
26 lines
2355 bytes
2355 bytes
"Lori M Olson (TeamB)" <javadragon@techie.com> wrote in message news:3fdf3765$1@newsgroups.borland.com... > if I > understand you correctly, they let you specify a GIF with multiple > images (usually known as an animated GIF), I think it's more tiles than animation. Say you have a 16x32 GIF, you can divide that up into two 16x16 tiles. JBuilder does this with its toolbar icons which are all tiles on a giant image that contains dozens of icons. One of the situations where I've seen this used is applets where it can be helpful to reduce the number of separate files that need to be downloaded -- download one big image instead of 20 small ones. > But... sorry, AFAIK the images in Java do not have this ability. It > should not be that difficult to implement, though, if you really need it. You could use the com.borland.primetime.util.Icons class and the nested IconFactory class as a model for the API. The class is neither documented nor redistributable, so you can't use it as is, but it looks fairly simple and might offer some ideas. -- Gillmer J. Derge (TeamB)
Technical Details
Message-ID:
<3fdf39ac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fde2e24@newsgroups.borland.com> <3fde51df$1@newsgroups.borland.com> <3fdf15a6@newsgroups.borland.com> <3fdf3765$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,75cc1eea82261cd8 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-16 09:11:37 PST From: "Gillmer J. Derge \(TeamB\)" <spam@gillmerderge.com> Newsgroups: borland.public.jbuilder.java.swing References: <3fde2e24@newsgroups.borland.com> <3fde51df$1@newsgroups.borland.com> <3fdf15a6@newsgroups.borland.com> <3fdf3765$1@newsgroups.borland.com> Subject: Re: Images for buttons Date: Tue, 16 Dec 2003 11:58:24 -0500 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 64.185.133.49 Message-ID: <3fdf39ac@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071593900 64.185.133.49 (16 Dec 2003 08:58:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail