Questions tagged [lwuit-textarea]

An optionally multi-line editable region that can display text and allow a user to edit it.

Depending on the platform editing might occur in a new screen. Notice that when creating a text area with one row it will act as a text field and never grow beyond that, however when assigning a greater number of rows the text area becomes multi-line with a minimum number of visible rows, the text area will grow based on its content.

19 questions
3
votes
1 answer

Prevent last component of LWUIT form from losing focus when down arrow key is pressed

I have a lwuit Form to which I have added a Container. The Container has a TextArea, some RadioButtons and finally another Container which has some Buttons. 1)TextArea 2)RadioButtons 3)Another Container with some Buttons Now if the focus is on my…
Nikhil
  • 1,279
  • 2
  • 23
  • 43
2
votes
2 answers

LWUIT TextArea doesn't catch touch events

I have made a Container compound by a TextArea and a CheckBox. In my app, I create so many of this "Containers" and add to each TextArea inside of them an ActionListener (implemented by the class). Something like this: for(int i = 0 ; i<20;i++){ …
Mun0n
  • 4,438
  • 4
  • 28
  • 46
2
votes
2 answers

How to create an editable component which looks like a TextArea?

We know that TextArea are not editable , so how to create an editable component which looks like a TextArea ( having the multi-line behaviour ) ?
user833129
2
votes
2 answers

Split screen proportionally LWUIT

I want to split the screen by 30% and 70% vertically, How can i achieve this with lwuit? I used/tried GridLayout but it splits the screen equally. Need a example code for this. Thanks in advance!
Ramesh Manly
  • 113
  • 9
2
votes
3 answers

How to align RIGHT the content of TextArea in LWUIT?

I want to align the text in a TextArea to the right. I tried the following code: Form form = new Form(); TextArea textArea = new TextArea("Some Arabic text ..."); textArea.setRTL(true); textArea.setAlignment(RIGHT); …
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
2
votes
1 answer

How to restrict user to enter 0(zero) in LWUIT Numeric TextField in J2ME?

I wants to create Text Field which allows all number > 0 So I have Done Such Like this : TextField textField = new TextField(); textField.setConstraint(TextField.NUMERIC); But I am not getting How to restrict user to enter Zero. Help Me to sort…
Satyam Koyani
  • 4,236
  • 2
  • 22
  • 48
1
vote
1 answer

Why is it impossible to write text within a TextArea?

There are a TextField , a ListBox and a TextArea inside my Form. The TextArea is the last item. When navigating the items through the navigational button keys of the phone then I cannot see the cursor blinking in the TextArea and I cannot write text…
pheromix
  • 18,213
  • 29
  • 88
  • 158
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

In LWUIT, How to programmatically set "TextArea's Scroll" back to its top, after moving it down?

Using LWUIT, I have a Form with two components: a read-only TextArea and a Button: TextArea text = new TextArea("blah blah blah blah blah blah blah blah blah ..."); text.setEditable(false); form.addComponent(text); Button button = new Button("Press…
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
1
vote
2 answers

I have a JSON Service that returns results with "\n" when InputStreamReader reads the result "\" is gone

I have a JSON Service that returns results with "\n" when InputStreamReader reads the result the "\" is gone and leaving the "n" in the String. I'm having trouble converting the "\n" to next line to be displayed in a TextArea. For example: Service…
bernardnapoleon
  • 373
  • 1
  • 3
  • 13
1
vote
2 answers

Scrolling issues with a TextArea in LWUIT

I have a TextArea in LWUIT that I am having an issue manipulating. I have the following two issues: Even though I call setIsScrollVisible(true), I do not seem to have a scrollbar and cannot scroll when the output goes below the visible area of the…
codewario
  • 19,553
  • 20
  • 90
  • 159
1
vote
2 answers

How to place the TextArea text in its center?

I have a Dialog and a TextArea. The TextArea component has an alignment set to Component.CENTER. I created a method named affiche() which displays the Dialog : public class Alert extends Dialog { private TextArea chp; private Command[]…
user833129
0
votes
1 answer

pointing cursor over textarea in lwuit

How do we set the cursor in TextArea? Mainly the cursor should be visible to the user. The cursor is visible in the TextField where as it is not visible in the TextArea.How to set the cursor when the TextArea has focus?.
0
votes
1 answer

How to scroll a form to make specified component visible in LWUIT?

When adding a component to a form, I want the form to scroll down to make that newly added component visible. I assumed that .scrollComponentToVisible() was used for this, but I does not work for me. If you run the sample code I provided bellow, you…
Daniele Testa
  • 1,538
  • 3
  • 16
  • 34
0
votes
1 answer

Catch events from a TextField

I'm building my app using the Nokia SDK 1.0 for the Asha 501 What I want to know, is how to capture events by pressing a TextArea. I'm porting an app from the S40 and using the code below, the TextArea doesn't capture the events TextArea itemText =…
Mun0n
  • 4,438
  • 4
  • 28
  • 46
1
2