My gui have a label using the font size specified by me, and i created a
FontDialog to let user change the font size.
After user click "Ok" button in FontDialog, the font didn't update
immediately (i.e. runtime change font size according to user selection)
Do anyone know how to perform ?

Updating the tabfolder the cTabitem belong to should do the trick.
Either layout or redraw on tabfolder

murley wrote:
> thanks for reply,
>
> Since my gui object is CTabItem, therefore no such method..
>
> And if there has many objects (CTabItem) need to update, i don't want
> manually update each one as it is not flexible
>
>

Use CTabFolder.setFont() to change the font for all items or
CTabItem.setFont() to change the font for just one item.

DO NOT call redraw - this just causes a repaint and this is not neccessary -
the widget will repaint as required.

You may wish to call folder.getShell().layout(new Control[] {folder}) if you
want the CTabFolder to change size in order to accomodate the new font
size - however, this is not neccessary to see the font change and it really
depends on you application layout.

"Stefan Langer" <eclipse@bettsockentraeger.de> wrote in message
news:dkdat1$hh6$1@news.eclipse.org...
> Updating the tabfolder the cTabitem belong to should do the trick.
> Either layout or redraw on tabfolder
>
> murley wrote:
>> thanks for reply,
>>
>> Since my gui object is CTabItem, therefore no such method..
>>
>> And if there has many objects (CTabItem) need to update, i don't want
>> manually update each one as it is not flexible