public FButtonBar(JRootPane rootPane, KeyBindingProcessor proc) {
KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(this);
final Container oldContentPane = rootPane.getContentPane();
final ContentPane newContentPane = new ContentPane();
final LayoutManager layoutManager = oldContentPane.getLayout();
oldContentPane.setLayout(null);
newContentPane.setLayout(layoutManager);
//RIBBONS impl: if ribbon found add it to NORTH
for (Component c : oldContentPane.getComponents()) {
if(c instanceof JRibbon) {