Add image to the form title - java-me

I have a Form. It is scrollable
And I need to have an image, that must always be at the top part of the scrreen.
How can I do that?
(I can set text to the title, but not the image)

if you are using lcdui Form, then you can't. If you are using LWUIT form, you can set an icon to a label then you can set this label as a title to the form via setTitleComponent(Label label).

Related

XPages RichText width properties

Using the insert image button of the rich text editor in xpages, you are given an option to resize the width and height of the image. After saving and returning the image returns to the original size. Is there a step I am missing or version bug with this item?
This is not an "answer" exactly, but I used the TinyMCE custom control on OpenNTF to replace using the native rich text control. I've had good luck with it. http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocument&name=XPages%20Tinymce%20Custom%20Control

How can I set layout_gravity dynamically in android?

How can I set layout_gravity programmatically?
I need to set position of a button LEFT or CENTER or RIGHT in a particular layout, I used the myButton.setGravity(Gravity.LEFT); but, it sets the gravity of button's text.
I found this by putting your title in the search bar. The short version: Use LayoutParams

GXT, how to display the widgets labels with a VBOXLayout

I have been trying to resolve this by myself but I can't find any answers. I need the text fields the combo box, etc., to display its own label, but I can't put it to work on a panel different from the FormPanel (in which all works great). I'm trying to display the labels for a text field on a VBoxLayout but I don't find the way to do it.
I need to work with a VBoxLayout because I need the widgets to position in the middle of the form after the window is maximized or minimized and this layout is the only one that proves to work. Is there another way to accomplish this?
Add another LayoutContainer and then set the panel to use FormLayout for example
LayoutContainer innerPanel = new LayoutContainer();
innerPanel.setLayout(new FormLayout());
Now it will work just like a form panel.

In J2me lWUIT Library how to arrange long text on Label?

I am using LWUIT Library. I want to add same long information of project on AboutUS FORM. I'm using label but information become lost. If I am not using TextArea then what is another Solution?
My Another Question is,
In Login Form, what should be used TextField or TextArea?
Label is not good for showing long information. because its not allow to show multiple lines. Better you can use with TextArea and set the editable mode to false. If you dont want to use TextArea means just start the ticker on the Label.
Use TextField for login page.

I cannot center the text of a userdefined Button

I created a Button and I set its UIID to boutonPpal. I set the bgAlign attribute to ALIGN_CENTER in the resource Editor but the text of the Button is not centered at runtime !
So how to make the text centered ?
bgAlign aligns the background image of a component. Use the "Align" tab if using the latest LWUIT. If you are using 1.4 you need to actually invoke setAlign() on the component since in 1.4 alignment was not a part of the theme.

Resources