// Listen to location change events to display the current folder in the window's title
leftFolderPanel.getLocationManager().addLocationListener(this);
rightFolderPanel.getLocationManager().addLocationListener(this);
// Create menu bar (has to be created after toolbar)
MainMenuBar menuBar = new MainMenuBar(this);
setJMenuBar(menuBar);
// Create the split pane that separates folder panels and allows to resize how much space is allocated to the
// both of them. The split orientation is loaded from and saved to the preferences.
// Note: the vertical/horizontal terminology used in muCommander is just the opposite of the one used