This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Inside Anonymous inner class, we can access Outer class object  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inside Anonymous inner class, we can access Outer class object  ?" Watch "Inside Anonymous inner class, we can access Outer class object  ?" New topic
Author

Inside Anonymous inner class, we can access Outer class object ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Inside Anonymous inner class, we can access Outer class object ?

Thanks

Dun Dagda
Ranch Hand

Joined: Oct 12, 2004
Posts: 54
Could you try using outer.this to reference the outer class instance?


SCJP 1.4<br />SCWCD (in progress)
 
jQuery in Action, 3rd edition
 
subject: Inside Anonymous inner class, we can access Outer class object ?
 
jQuery in Action, 3rd edition