|
From: Vos, J. R. <jv...@an...> - 2003-07-17 15:46:39
|
I believe I've found a bug in Controller. It has the toolBar field and
the accessible through the getToolBar function, but the toolBar field is
not the actual ToolBar because setupToolBar makes its own local JToolBar
=20
private void setupToolBar() {
JToolBar toolBar =3D new JToolBar(); =20
...
}
so the toolBar that gets created never gets stored and is inaccessible.
=20
Workaround:
Instead of=20
JToolBar toolBar =3D controller.getToolBar();
Use
JToolbar toolBar =3D (JToolBar)
controller.getFrame().getContentPane().getComponent(0);
|