有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java传递对象,包括对象

我有一门课:

用户界面。爪哇

private Panel Panel1 = new Panel()

ClickMethod(){
Popup pop = new Popup(this)
}

show(){  
Panel1.getText(); //should get the Text out of it
}

弹出窗口。爪哇

   private uiobj;
     Popup(Ui uiobj){
    this.uiobj = uiobj
    }

    click(){
    uiobj.show();
    }

问题是我的Panel1没有通过,所以如果我打电话

  show(){  
    Panel1.getText(); //should get the Text out of it
    }

我得到一个空字符串


共 (0) 个答案