Questions tagged [lwuit-label]

Allows displaying labels and images with different alignment options.

This class is a base class for several components allowing them to declare alignement/icon look in a similar way.

7 questions
3
votes
4 answers

How do you add a line break in a Label using LWUIT?

I've created a Label on a Form, but is too large to show it in one line, is it posible make a break line? I am using LWUIT on J2ME. Thank you.
grouser
  • 618
  • 8
  • 23
2
votes
1 answer

How to set Label at bottom of the screen in J2ME with LWUIT?

I am displaying the main form in Box Layout.In that box layout,taken Label in another container which has been set as border layout. Now this container is added to main form. following is my code :- lblversion=new…
Kinjal Shah
  • 536
  • 4
  • 13
1
vote
1 answer

UI alignments in LWUIT?

I'm using LWUIT to create J2ME application. I used GridLayout to add the controls but they are not aligned. Code: flowLayout = new FlowLayout(); roundsPage.setLayout(flowLayout); try { image = image.createImage("/11.png"); //…
selladurai
  • 6,491
  • 14
  • 56
  • 88
1
vote
2 answers

Why is TextArea setGrowByContent(true) inefficient when contained inside a List cell renderer?

I want to display Labels and TextArea inside a List , precisely in the list cellrenderer. The problem is that even if I set ((TextArea)lData[i]).setGrowByContent(true); then the TextArea doesn't grow ! Here are codes : public class…
pheromix
  • 18,213
  • 29
  • 88
  • 158
1
vote
1 answer

LWUIT button issue

import com.sun.lwuit.Button; import com.sun.lwuit.Command; import com.sun.lwuit.Display; import com.sun.lwuit.Label; import com.sun.lwuit.events.ActionEvent; import com.sun.lwuit.events.ActionListener; import…
fyzil
  • 25
  • 1
  • 4
1
vote
1 answer

Midlet is not abstract and does not override abstract method focusLost(com.sun.lwuit.Component)

I have a LWUIT class which has a List, the list itself contains a Label as an item. My idea simply to make an action for the list when I focus on the label. I get the following error, when compiling the class: anonymous Midlet$2 is not abstract and…
PHPFan
  • 756
  • 3
  • 12
  • 46
0
votes
1 answer

Why isn't Label shown when setting setLabelForComponent for a TextField?

There are Label, TextField and a Container in a Form. I set : ... private Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS)); ... impay30 = new Label("Impayé…
user806574