final LayoutManager tbl = new TableLayout(size);
_labelPanel = new JPanel(tbl);
_labelPanel.add(new JLabel("Preview"), "1, 1, 1, 1");
_labelPanel.add(_label, "3, 1, 3, 1");
final AbstractButton closeButton = new JButton(GuiResources.CLOSE_EDITOR_ICON);
closeButton.setToolTipText("close preview");
closeButton.setBorderPainted(false);
closeButton.setFocusable(false);
closeButton.setFocusPainted(false);
closeButton.setContentAreaFilled(false);
closeButton.setRequestFocusEnabled(false);
closeButton.setRolloverEnabled(false);
closeButton.setRolloverIcon(GuiResources.CLOSE_EDITOR_HOVER_ICON);
closeButton.setRolloverSelectedIcon(GuiResources.CLOSE_EDITOR_HOVER_ICON);
closeButton.setPressedIcon(GuiResources.CLOSE_EDITOR_HOVER_ICON);
closeButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
release();
_delegate.add(NO_BUG_SELECTED_LABEL, BorderLayout.CENTER);
final Dimension preferredSize = NO_BUG_SELECTED_LABEL.getPreferredSize();
preferredSize.width = _delegate.getPreferredSize().width;