Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Swing image class Date: Fri, 18 Jan 2013 23:30:50 -0800 Organization: Canadian Mind Products Lines: 25 Message-ID: <4mikf8h7enquva3icl2d085grd5e04emt0@4ax.com> References: <3a854a9f-1fb5-4001-ab84-7d6fd7987069@googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:21571 On Fri, 18 Jan 2013 07:20:15 -0800 (PST), bob smith wrote, quoted or indirectly quoted someone who said : >Is there really no built-in Swing class that just displays an image? > >This is very hard to believe, but it looks like it at first google. Perhaps they considered it too simple. Here is one https://wush.net/svn/mindprod/com/mindprod/common11/ImageViewer.java You can download the whole package at http://mindprod.com/products1.html#COMMON11 You can use a JLabel/ImageIcon combo to get that effect in Swing. see http://mindprod.com/jgloss/imageicon.html -- Roedy Green Canadian Mind Products http://mindprod.com The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time. ~ Tom Cargill Ninety-ninety Law