Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableColumn: setImage does not work correctly
TableColumn: setImage does not work correctly [message #451772] Tue, 08 March 2005 20:23 Go to next message
Boris Munivrana is currently offline Boris MunivranaFriend
Messages: 23
Registered: July 2009
Junior Member
Hi there,

what's up with TableColumn.setImage??? I tried to set an image for a
TableColumn,
but it doesn't show an icon. Oddly enough, it does so when you embed the
setImage-Method within a SelectionListener.

This doesn't work -> Example:

final TableColumn column1 = new TableColumn(jobTable, SWT.CENTER);
column1.setWidth(50);
column1.setImage(imgSymbol);

This works: -> Example:

column1.addSelectionListener(new SelectionListener(){
public void widgetSelected(SelectionEvent e) {
column1.setImage(imgSymbol);
}
[....]

Any suggestions ?
Re: TableColumn: setImage does not work correctly [message #451885 is a reply to message #451772] Thu, 10 March 2005 16:14 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Your example snippets look fine, so please log a bug report with Platform -
SWT and include the image that you're trying to set into the column header.

Thanks,
Grant

"Boris Munivrana" <bmunivrana@web.de> wrote in message
news:d0l1jc$vgd$1@www.eclipse.org...
> Hi there,
>
> what's up with TableColumn.setImage??? I tried to set an image for a
> TableColumn,
> but it doesn't show an icon. Oddly enough, it does so when you embed the
> setImage-Method within a SelectionListener.
>
> This doesn't work -> Example:
>
> final TableColumn column1 = new TableColumn(jobTable, SWT.CENTER);
> column1.setWidth(50);
> column1.setImage(imgSymbol);
>
> This works: -> Example:
>
> column1.addSelectionListener(new SelectionListener(){
> public void widgetSelected(SelectionEvent e) {
> column1.setImage(imgSymbol);
> }
> [....]
>
> Any suggestions ?
>
>
>
Re: TableColumn: setImage does not work correctly [message #451991 is a reply to message #451885] Sat, 12 March 2005 11:13 Go to previous message
Boris Munivrana is currently offline Boris MunivranaFriend
Messages: 23
Registered: July 2009
Junior Member
thanks Grant, i'll do so.

Grant Gayed wrote:

> Your example snippets look fine, so please log a bug report with Platform -
> SWT and include the image that you're trying to set into the column header.

> Thanks,
> Grant

> "Boris Munivrana" <bmunivrana@web.de> wrote in message
> news:d0l1jc$vgd$1@www.eclipse.org...
>> Hi there,
>>
>> what's up with TableColumn.setImage??? I tried to set an image for a
>> TableColumn,
>> but it doesn't show an icon. Oddly enough, it does so when you embed the
>> setImage-Method within a SelectionListener.
>>
>> This doesn't work -> Example:
>>
>> final TableColumn column1 = new TableColumn(jobTable, SWT.CENTER);
>> column1.setWidth(50);
>> column1.setImage(imgSymbol);
>>
>> This works: -> Example:
>>
>> column1.addSelectionListener(new SelectionListener(){
>> public void widgetSelected(SelectionEvent e) {
>> column1.setImage(imgSymbol);
>> }
>> [....]
>>
>> Any suggestions ?
>>
>>
>>
Previous Topic:SWT application that use DB
Next Topic:Screen Capture Win32 Window
Goto Forum:
  


Current Time: Thu Apr 25 15:02:27 GMT 2024

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

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

Back to the top