New to scala and can't seem to find a reference on this situation.
I'm trying to override some methods on scala.swing.TabbedPane.pages: The definition of this class is:
class TabbedPane extends Component with Publisher {
object pages extends BufferWrapper[Page] {
def +=
}
}
I can't figure out the syntax for overriding any method in the internal pages object. Is this possible with scala?
Thanks.
EDIT: To make this question clearer.
class CloseableTabbedPane extends TabbedPane{
}
val pane = new CloseableTabbedPane;
pane.pages += new CloseablePage;
I need to override the method pane.pages += to accept a CloseablePage with an icon.