How can I access private class members of container class within the anonymouse inner class?
- 阅读更多 关于 How can I access private class members of container class within the anonymouse inner class?
问题 How can I access all the member field of the class which contains the function initTimer() from within the AbstractActionClass? Thanks private void initTimer() { Action updateClockAction = new AbstractAction() { public void actionPerformed(ActionEvent e){ JLabel secLabel = m_GameApplet.GetJpanelStartNetGame().GetJlabelSeconds(); secLabel.setFont(new java.awt.Font("Lucida Handwriting", 1, 36)); secLabel.setForeground(Color.red); secLabel.setText(Integer.toString(m_TimerSeconds)); if(m