๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Show an imagen in a cell

#322
From: Alexey N. Solofnenko
Date: Sun, 14 Aug 2005 18:26
41 lines
2078 bytes
I would use JLabel with label.setIcon(). ImageIcon itself is not a 
JComponent.

- Alexey.

Anton wrote:
> Hi.
> Thanks for asking, there is posibility to do using an icon (imageIcon)
> 
> Regards
> "Alexey N. Solofnenko" <nospam@nospam.comp> escribiรณ en el mensaje 
> news:42fe1e56$1@newsgroups.borland.com...
>> See for example this:
>> http://www.codeguru.com/java/articles/162.shtml
>>
>> You can put an image into JLabel, but a more complex GUI is also possible.
>>
>> - Alexey.
>>
>> Anton wrote:
>>> Hello.
>>>
>>> I want to know how to put an image into a cell in a JTable. In my case I 
>>> have a number for each image, so when I reload the data in the table 
>>> depending on the number in each I want to show an image.
>>>
>>> My JTable is in a JScrollPane and has only to columns, one for the data 
>>> and the other for the number.
>>>
>>> How can I do that??
>>>
>>> Regards
>> -- 
>> Alexey N. Solofnenko
>> home: http://trelony.cjb.net/ 
> 
> 

-- 
Alexey N. Solofnenko
home: http://trelony.cjb.net/
Technical Details
Message-ID: <42ff8cc1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42fdcb36$1@newsgroups.borland.com> <42fe1e56$1@newsgroups.borland.com> <42fe486e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,5204561b390db241
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,UTF8
Date: Sun, 14 Aug 2005 11:26:14 -0700
From: "Alexey N. Solofnenko" <nospam@nospam.comp>
User-Agent: Thunderbird 1.0+ (X11/20050813)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Show an imagen in a cell
References: <42fdcb36$1@newsgroups.borland.com> <42fe1e56$1@newsgroups.borland.com> <42fe486e$1@newsgroups.borland.com>
In-Reply-To: <42fe486e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 67.180.237.5
Message-ID: <42ff8cc1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124043969 67.180.237.5 (14 Aug 2005 11:26:09 -0700)
Lines: 41
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail