Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Loading jpgs into a table?
Loading jpgs into a table? [message #445355] Thu, 04 November 2004 00:05 Go to next message
MP Mising name is currently offline MP Mising nameFriend
Messages: 18
Registered: July 2009
Junior Member
Does anyone know of any examples of how to load jpg files into a table
and then how to determine which are selected by a user?
Re: Loading jpgs into a table? [message #447705 is a reply to message #445355] Thu, 16 December 2004 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

Hows this :

tableItem.setImage(0,new Image(display, "app.gif"));


-Sebastian


"MP" <dev1@levelgroundmedia.com> schrieb im Newsbeitrag
news:cmbrdn$gnb$1@eclipse.org...
> Does anyone know of any examples of how to load jpg files into a table and
> then how to determine which are selected by a user?
Re: Loading jpgs into a table? [message #447718 is a reply to message #447705] Thu, 16 December 2004 15:43 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Great if you want to leak the image.

"Sebastian Scholz" <ssc@acentic.net> wrote in message
news:cps0ta$sds$1@www.eclipse.org...
> Hows this :
>
> tableItem.setImage(0,new Image(display, "app.gif"));
>
>
> -Sebastian
>
>
> "MP" <dev1@levelgroundmedia.com> schrieb im Newsbeitrag
> news:cmbrdn$gnb$1@eclipse.org...
> > Does anyone know of any examples of how to load jpg files into a table
and
> > then how to determine which are selected by a user?
>
>
Re: Loading jpgs into a table? [message #447858 is a reply to message #447718] Mon, 20 December 2004 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

What is the problem ?

Steve Northover wrote:

> Great if you want to leak the image.

> "Sebastian Scholz" <ssc@acentic.net> wrote in message
> news:cps0ta$sds$1@www.eclipse.org...
>> Hows this :
>>
>> tableItem.setImage(0,new Image(display, "app.gif"));
>>
>>
>> -Sebastian
>>
>>
>> "MP" <dev1@levelgroundmedia.com> schrieb im Newsbeitrag
>> news:cmbrdn$gnb$1@eclipse.org...
>> > Does anyone know of any examples of how to load jpg files into a table
> and
>> > then how to determine which are selected by a user?
>>
>>
Re: Loading jpgs into a table? [message #447868 is a reply to message #447858] Mon, 20 December 2004 17:00 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You need to call Image.dispose() on every image that you created or you will
leak. Code that does "new Image(...)" and doesn't save the result is highly
suspicious.

"Sebastian Scholz" <ssc@acentic.net> wrote in message
news:cq5uvk$i3j$1@www.eclipse.org...
>
> What is the problem ?
>
> Steve Northover wrote:
>
> > Great if you want to leak the image.
>
> > "Sebastian Scholz" <ssc@acentic.net> wrote in message
> > news:cps0ta$sds$1@www.eclipse.org...
> >> Hows this :
> >>
> >> tableItem.setImage(0,new Image(display, "app.gif"));
> >>
> >>
> >> -Sebastian
> >>
> >>
> >> "MP" <dev1@levelgroundmedia.com> schrieb im Newsbeitrag
> >> news:cmbrdn$gnb$1@eclipse.org...
> >> > Does anyone know of any examples of how to load jpg files into a
table
> > and
> >> > then how to determine which are selected by a user?
> >>
> >>
>
>
Previous Topic:Why the drop method never been called?
Next Topic:resize event only called once????
Goto Forum:
  


Current Time: Tue Oct 20 12:33:50 GMT 2020

Powered by FUDForum. Page generated in 0.02178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top