lwuit-textfield

How to add calendar in lwuit TextField or comboBox

假如想象 提交于 2020-01-15 05:46:05
问题 I am creating an application using lwuit. And i want to add calendar in comboBox. please give me an idea as soon as possible.. 回答1: Do u mean that you want to add the selected date of calendar component at the end of combobox values or to show the selected date in textbox? If so, then below code shows the selected date of calendar component in textbox: Button cal = new Button("Calendar"); // button for calendar cal.addActionListener(new ActionListener() { // define action for button // action

Mobile Number Validation In LWUIT [closed]

↘锁芯ラ 提交于 2019-12-14 03:35:56
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to check the 10 digit phone number whether all 10 digits are same or different. If same means Invalid mobile number alert will be displayed. I want a code in LWUIT. 回答1: set the TextField max size to 10.

pointing cursor over textarea in lwuit

房东的猫 提交于 2019-12-12 03:06:37
问题 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?. 回答1: You can't. LWUIT 1.5 supports a multi-line text field which has a cursor element. 来源: https://stackoverflow.com/questions/8118510/pointing-cursor-over-textarea-in-lwuit