🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1585

Re: Problem create icon from .bmp using ImageIcon

#1585
From: John McGrath [TeamB]
Date: Sun, 19 Oct 2003 23:24
24 lines
1822 bytes
On 10/17/2003 at 4:39:43 AM, Jos� Miguel Franco Valiente wrote:

> I�m trying to add a preview pane to a JFileChooser using ImageIcon to
> create the thumbnail, but it doesn�t work properly with .bmp files.
> The code I�ve used is in the following URL:
> 
> http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser
> .html
> 
> Any other solution to create a thumbnail from a .bmp file?

The standard Java Image loading classes do not support the BMP format,
since this is Windows-specific.  However there are plenty of libraries
available that support BMP.  One is the Java Advanced Imaging (JAI)
API.  If you do a simple web search, you will find many more.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3f931d3d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8faacf@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,668855771605a55d
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-19 16:39:10 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Problem create icon from .bmp using ImageIcon
Newsgroups: borland.public.jbuilder.java.swing
References: <3f8faacf@newsgroups.borland.com>
User-Agent: XanaNews/1.15.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 141.151.10.237
Message-ID: <3f931d3d$1@newsgroups.borland.com>
Date: 19 Oct 2003 16:24:45 -0700
X-Trace: newsgroups.borland.com 1066605885 141.151.10.237 (19 Oct 2003 16:24:45 -0700)
Lines: 24
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail