English 中文(简体)
如何在诊断时排除屏幕分解?
原标题:How to remove the screen dimming when is presented dialog?

在公开的辩证时,我想能够在我的屏幕上向其他县施加压力。

Dialog menuDialog = new Dialog("Dialog Demo");
menuDialog.setTimeout(1000);
menuDialog.show(90, 90, 10, 10, true);
问题回答

在将一项行动与<条码>点名/代码>区域联系起来时,正好分数。 您还需要在衍生的Dialog课程中制定<代码>DisposeWhenPointerOutOfBounds(false)。

http://www.java.net/forum/topic/mobile-内装/lwuit/how-remove- Screen-diming-time-presented-dialog-2”rel=“nofollow”http://www.java.net/forum/topic/mobile-内装/lwuit/how-remove- Screen-diming-time-presented-dialog-2

Don t use directly a Dialog but create a class which derives Dialog. Implement the pointerReleased method , assuming that the device is tactile , and test if the x and y params are contained inside the area delimited by the Buttons s coordinates :

if ( ( x >= btn.getAbsoluteX() && x <= btn.getAbsoluteX() + btn.getPreferredW() ) && ( y >= btn.getAbsoluteY() && y <= btn.getAbsoluteY() + btn.getPreferredH() ) )
   // execute the Buttons s action method
else
   super.pointerReleased(x,y);




相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签