阅读背景:

对于gui中的侦听器来说,嵌套类具有优势

来源:互联网 

For decently sized projects I've been told that when you have classes extending JPanels that the best practice is to use nested classes to implement the listeners. For example I could have a class FactoryScreen that extends JPanel, and have a nested class FactoryScreenBrain that implements all the necessary listeners. For decently sized projects I've been told that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: