Article View: borland.public.jbuilder.java.swing
Article #195Problem showing an image in a JDialog ...
From: Magnus
Date: Thu, 21 Sep 2006 19:30
Date: Thu, 21 Sep 2006 19:30
16 lines
1405 bytes
1405 bytes
Hi, I have a JDialog where the user can select data to be sent to the report together with a logo (any image) that is part of the report. Now, I have a button that opens the FileChooser and the user can select the logo. To show what the logo looks like I added a Label and put the image (converted to an Icon) on it. Works great on small logos but when I pick a larger image it moves buttons and all in that panel (GBL). I tried with maximum size for the label but that didn't do anything. Is there a way to limit the size of my label or is there a better way to show the selected image? TIA
Technical Details
Message-ID:
<4512e832@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 111d45,79cebbd9fb514ce,start X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 21 Sep 2006 15:30:05 -0400 From: Magnus <magnus_bjorkman@yahoo.com> User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Problem showing an image in a JDialog ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.149.234.69 Message-ID: <4512e832@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158866994 24.149.234.69 (21 Sep 2006 12:29:54 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail