2012-06-04 46 views
0

我想打開彈出屏幕中相同位置的標籤。所以我想要一個返回屏幕中字段位置的方法。然後我用這些位置彈出。blackberry:屏幕中字段的位置

public void sublayout(int width, int height){ 
      super.sublayout(width,height); 
      setPosition(x_postion_of_label,y_postion_of_labe); 
      } 

回答

0
int xPos=labelField.getLeft() ; 

&

int yPos=labelField.getTop(); 

會給你啓動X和labelField屬性的Y位置。