public void setMainInsets(Insets insets) {
pageContainer.setBorder(insets == null ? null : BorderFactory.createEmptyBorder(insets.top, insets.left, insets.bottom, insets.right));
}
void createComponents() {
titleBar = new FolderBar();
titleBar.setFont(titleBar.getFont().deriveFont(Font.BOLD).deriveFont((float)(titleBar.getFont().getSize() * 2)));
pageContainer = new JPanel(pageCardLayout = new CardLayout());
JPanel buttonBar = new JPanel(new FlowLayout(FlowLayout.RIGHT, 4, 0));
buttonBar.setBorder(BorderFactory.createEmptyBorder(4, 0, 4, 0));
buttonBar.add(new JButton(cancelAction));