Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What does an enclosing instance mean?

807591Dec 29 2005 — edited Mar 17 2008
I have a class with a nested class inside of it an when I try to call the nested class' constructor I get this error an enclosing instance that contains com.zipany.ZipTableModel.ColumnListener is required.

This is the code that I am using:
header.addMouseListener(new ZipTableModel.ColumnListener(table));
I would like to know what this error means and what corrections to my code should i make if there is something wrong.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2008
Added on Dec 29 2005
5 comments
657 views