Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Image does not show up...
Image does not show up... [message #138396] Fri, 26 June 2009 10:12 Go to next message
Eclipse UserFriend
... when set on a Label widget:

In a view:

createControl() {
Label mylabel = ...;
Image image = ...;
mylabel.setImage(image);
}

The image does not show up. I tried to layout() the label's parent or to
redraw() the label, but nothing happens...

Are there any restrictions or am I missing something?
Re: Image does not show up... [message #138438 is a reply to message #138396] Sat, 27 June 2009 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Erdal,

there is nothing special... but you can set image or text only. If you
need both you can use CLabel instead. For an example how to use Label
with image you can have a look at Controls Demo -> LabelTab.java.

Best,
Ivan

Erdal Karaca wrote:
> .. when set on a Label widget:
>
> In a view:
>
> createControl() {
> Label mylabel = ...;
> Image image = ...;
> mylabel.setImage(image);
> }
>
> The image does not show up. I tried to layout() the label's parent or
> to redraw() the label, but nothing happens...
>
> Are there any restrictions or am I missing something?
>
Re: Image does not show up... [message #138607 is a reply to message #138438] Mon, 29 June 2009 10:09 Go to previous message
Eclipse UserFriend
Thanks... CLabel works.

Though, I did not set a text on the Label widget, only an image...
Previous Topic:Information on Menu set on CTabFolder or TabFolder
Next Topic:CAS PIA demo
Goto Forum:
  


Current Time: Wed Sep 17 06:31:29 EDT 2025

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

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

Back to the top