Thread View: borland.public.jbuilder.java.swing
5 messages
5 total messages
Started by Anton
Sat, 13 Aug 2005 10:19
Show an imagen in a cell
Author: Anton
Date: Sat, 13 Aug 2005 10:19
Date: Sat, 13 Aug 2005 10:19
12 lines
1289 bytes
1289 bytes
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
Re: Show an imagen in a cell
Author: Alexey N. Solofnenko
Date: Sat, 13 Aug 2005 16:22
Date: Sat, 13 Aug 2005 16:22
26 lines
1698 bytes
1698 bytes
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/
Re: Show an imagen in a cell
Author: Anton
Date: Sat, 13 Aug 2005 19:22
Date: Sat, 13 Aug 2005 19:22
30 lines
1846 bytes
1846 bytes
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/
Re: Show an imagen in a cell
Author: Alexey N. Solofnenko
Date: Sun, 14 Aug 2005 18:26
Date: Sun, 14 Aug 2005 18:26
41 lines
2078 bytes
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/
Re: Show an imagen in a cell
Author: Anton
Date: Mon, 15 Aug 2005 09:10
Date: Mon, 15 Aug 2005 09:10
45 lines
2296 bytes
2296 bytes
Thanks "Alexey N. Solofnenko" <nospam@nospam.comp> escribi� en el mensaje news:42ff8cc1@newsgroups.borland.com... >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/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads