ラベルと同じ位置にポップアップ画面を開きたい。そのため、画面内のフィールドの位置を返すメソッドが必要です。そして、これらの位置をポップアップに使用します。
public void sublayout(int width, int height){
super.sublayout(width,height);
setPosition(x_postion_of_label,y_postion_of_labe);
}
ラベルと同じ位置にポップアップ画面を開きたい。そのため、画面内のフィールドの位置を返すメソッドが必要です。そして、これらの位置をポップアップに使用します。
public void sublayout(int width, int height){
super.sublayout(width,height);
setPosition(x_postion_of_label,y_postion_of_labe);
}