DialogWindow issue

How come:

class DialogWindow : public Component, private ActionListener

How can I put buttons in my dialog window if the ActionListener is private? I am adding buttons to the title bar.

And the doc says:

(if overriding this, make sure you call DialogWindow::actionListenerCallback() in your subclass)

I think ActionListener should be protected and not private…will change for now in my class


hmm - yes, good point. I’ll change it to protected.