BoulderBum
Programmer
I just finished up a big project, and am now looking on making small improvements to the code while teaching myself a little more good Java programming practice.
I need to call this.validate() or something from within an ActionListener internal class for a button, and currently I'm using a private method ( getThis(){ return this; } ) to provide my reference (naturally, the "this" pointer in the internal class references the ActionListener).
I can't help but feel there's a simpler and better way to do what I want. Can anyone provide hook me up with an improvement?
I need to call this.validate() or something from within an ActionListener internal class for a button, and currently I'm using a private method ( getThis(){ return this; } ) to provide my reference (naturally, the "this" pointer in the internal class references the ActionListener).
I can't help but feel there's a simpler and better way to do what I want. Can anyone provide hook me up with an improvement?