Though you might think that createController() should always create a

controller, we don't necessarily want to insist about such things, so we
go ahead and cope if it returns null.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@998 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-12-18 04:19:16 +00:00
parent 54afee66f5
commit 029ed2322e
@@ -1,5 +1,5 @@
//
// $Id: ControlledPanel.java,v 1.1 2002/03/16 20:52:07 mdb Exp $
// $Id: ControlledPanel.java,v 1.2 2002/12/18 04:19:16 mdb Exp $
package com.samskivert.swing;
@@ -22,7 +22,9 @@ public abstract class ControlledPanel extends JPanel
_controller = createController();
// let the controller know about this panel
_controller.setControlledPanel(this);
if (_controller != null) {
_controller.setControlledPanel(this);
}
}
// documentation inherited from interface