No enclosing instance of the type is accessible in scope

后端 未结 3 1927
梦如初夏
梦如初夏 2020-12-16 17:19

I have this code:

Thread thread = new Thread(null, vieworders, \"MagentoBackground\");
thread.start();
m_progressDialog = ProgressDialog.show(SoftwarePassion         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 17:49

    You are trying to get this for the enclosing class, which would work if you were inside an anonymous class, but I'm guessing this is not the case.

    Please read http://mindprod.com/jgloss/this.html

提交回复
热议问题