pageButtonPanel.setBorder(SimpleBorder.getStandardBorder());
pageButtonPanel.add(pageButtonBar, BorderLayout.NORTH);
pageButtonPanel.add(new JSeparator());
pageButtonPanel.add(openInDialogLabel, BorderLayout.SOUTH);
StatusBarPlugin statusBar = (StatusBarPlugin) PluginMgr.getInstance().createInstance(StatusBarPlugin.class, this);
// Create the area for the pages to display
cardLayout = new CardLayout();
pagePanel = new JPanel(cardLayout);
// The content panel holds the main toolbar at the top, the page area centered,
// the status bar at the bottom and the page button panel to the left
JPanel contentPanel = (JPanel) getContentPane();
contentPanel.setLayout(new BorderLayout());
contentPanel.add(toolbar, BorderLayout.NORTH);
contentPanel.add(pagePanel);
contentPanel.add(pageButtonPanel, BorderLayout.WEST);
contentPanel.add(statusBar.getPluginComponent(), BorderLayout.SOUTH);
setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
// For clearing the hotkey display
addWindowFocusListener(this);