Questions tagged [lwuit-button]

LWUIT Button is the base class for several UI widgets allowing clickability.

It has 3 states: rollover, pressed and the default state it can also have ActionListeners that react when the Button is clicked.

24 questions
3
votes
1 answer

In LWUIT, a white rectangular background appears when the button is pressed, how to remove it?

Using LWUIT, I have a Form (form1) which contains a Button (see the silver arrow at the bottom of the Form in the left image below). This Button is constructed using an image which has a transparent background to give the effect of a non-rectangular…
Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82
2
votes
2 answers

How create drop down menu, use LWUIT? What solutions exist?

I need to create drop down menu (see the picture). What methods are there? What should I use?
Tim
  • 1,606
  • 2
  • 20
  • 32
2
votes
1 answer

LWUIT - Adding 3 Commands and how to get events from them?

I was working with Command Component with LWUIT to develop small Midlet applications there was a situation where i had to have three commands helping me to go to different forms. Display.getInstance().setThirdSoftButton(true); definetly helped in…
1
vote
2 answers

Apply resource on a button

I'm new in LWUIT. I have created a theme for my MIDlet and applied it. The background of the Form, the Label and font change as defined in the theme but the Buttons on the Form do not change like I have defined them in my theme. What could be the…
1
vote
1 answer

back button in lwuit with blackberry

I developed an mobile application using LWUIT and it works fine in devices with J2ME. I want to run the same application in Blackberry also. I saw some samples about LWUIT on Blackberry but none of them answered me. How can I handle the back button…
nhr
  • 15
  • 2
1
vote
2 answers

OutOfMemory error , use lwuit

I have some button on my form. When I click on every buttons run new form with same buttons. When I am clicking many times, show error OutOfMemory. I think this is because I create a lot of form objects. May be can clear stack or use form from stack…
Tim
  • 1,606
  • 2
  • 20
  • 32
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

Button border issue in LWUIT

I have created button without any border using LWUIT resource editor. I am able to see that button with all my properties set. However, when i am trying to add an image into this button using its image constructor, i am able to see a thick border…
Shafi
  • 1,368
  • 10
  • 24
1
vote
3 answers

How to put 4 button in row use lwuit? At the same distance

how to put 4 button in row, as in the picture: The distance between the elements should be changed at different resolutions
Tim
  • 1,606
  • 2
  • 20
  • 32
1
vote
2 answers

How to remove the Title-bar of a LWUIT Form?

In the actionPerformed of a Button I want to remove the Title-bar of the actual LWUIT Form. How to achieve that? And how to redisplay it again after a certain action has been complete?
user806574
1
vote
3 answers

how to display a image on click of a button using LWUIT

I am trying to write a application using LWUIT where I want a image to be displayed on click of a button. I have the following code. But I get an exception if the button is clicked twice. Please help me display the image without giving any…
swatijoshi
  • 51
  • 2
1
vote
1 answer

Button field(using image as button) focus issue

In a single row we are displaying text field to enter the search text along with search image as button field. Below of that row we are displaying list of names. The issue here is, the image button field not getting the focus during downward…
selladurai
  • 6,491
  • 14
  • 56
  • 88
1
vote
1 answer

Lwuit different behaviour on touch screen (arrow keys displayed)

My lwuit application works fine on my qwerty phone. However, when I transfer it to a touch screen phone an ugly black keypad comes up along with the application. The keypad consists of 4 arrow keys and 4 keys {A,B,C,D}. This keypad occupied almost…
Nikhil
  • 1,279
  • 2
  • 23
  • 43
0
votes
2 answers

How to remove the screen dimming when is presented dialog?

I want to be able to press the other buttons on my screen when open dialog. Dialog menuDialog = new Dialog("Dialog Demo"); menuDialog.setTimeout(1000); menuDialog.show(90, 90, 10, 10, true);
Tim
  • 1,606
  • 2
  • 20
  • 32
0
votes
1 answer

Vserv LWUIT banner

i am getting a ClassCastException when i try to cast to cast into com.sun.lwuit.Image .Please help on how i can change the code below to use in LWUIT public void vservAdReceived(Object obj) { if(obj==vservAd) { …
1
2