*/
private void createAndShowGUI() {
frame = new JFrame("WorkspaceDemo");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setBounds(100, 100, 500, 500);
final SearchBar sb = new SearchBar("Search blocks",
"Search for blocks in the drawers and workspace", workspace);
for (final SearchableContainer con : getAllSearchableContainers()) {
sb.addSearchableContainer(con);
}
final JPanel topPane = new JPanel();
sb.getComponent().setPreferredSize(new Dimension(130, 23));
topPane.add(sb.getComponent());
frame.add(topPane, BorderLayout.PAGE_START);
frame.add(getWorkspacePanel(), BorderLayout.CENTER);
frame.add(getButtonPanel(), BorderLayout.SOUTH);
frame.setVisible(true);
}