Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我意识到这可能是一个非常愚蠢的问题,但是如何将 JOptionPane 与 Xtend 一起使用?我无法弄清楚,我一直在努力让它工作一段时间。
JOptionPane.showMessageDialog(getContentPane(), message);似乎不起作用。
JOptionPane.showMessageDialog(getContentPane(), message);
Eclipse 给了我这个错误:The method or field JOptionPane is undefined for the type MyClassName
The method or field JOptionPane is undefined for the type MyClassName
在 Xtend 中通过双冒号访问静态方法或字段:
JOptionPane::showMessageDialog(..)
有关详细信息,请参阅文档。
我正在使用 AsyncTask
我使用父创建意图没有错误。
创建对话框的行给父级无法解析为 ye。新的 parent.AlertDialog.Builder(this)
我得到的错误是父级不存在,但我在相同的方法中使用父级来调用意图
代码块私有类 SendTextOperation 扩展 Asyn