首页
编程语言
visibility
文章 1
浏览 4
为什么我的对象看到构造函数中没有给它的变量?
Whymyobjectseesvariableswhichwerenotgiventoitintheconstructor?我有以下代码。哪个是"正确的",我不明白:privatestaticvoidupdateGUI(finalinti,finalJLabellabel){SwingUtilities.invokeLater(newRunnable(){publicvoidrun(){label…
2024-09-17
1