This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes extending classes with inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "extending classes with inner classes" Watch "extending classes with inner classes" New topic
Author

extending classes with inner classes

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
Not sure if this belongs here or in intermediate Java...

I have a class RunPanel which extends JPanel. It contains several inner classes for a TableModel etc. In fact, the inner class tableModel contains it's own inner class ColumnData.

What I want to do is extend RunPanel with two descendants. These descendants will need to over-ride methods in the inner classes of RunPanel and its inner classes ColumnData.

How should this be done? My RunPanel class seems fine, it's just hard to extend. do I have to break out the inner classes into classes of their own?

ms


ms<br />SCJP, SCJD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: extending classes with inner classes
 
Similar Threads
Inner class
inner class
nested static class
Problem with swing GUI due to lengthy code running in background.
TableModel problem