protected JPanel createTitledPanel(String name, JComponent comp, boolean fullWidth) {
		JPanel panel = new JPanel(new BorderLayout());
		panel.setBorder(BorderFactory.createEmptyBorder(20, 5, 0, 0));
		JPanel titlePanel = new JPanel(new BorderLayout());
		JPanel contentPanel = new JPanel(new BorderLayout());

		panel.add(titlePanel, BorderLayout.NORTH);
		panel.add(contentPanel, BorderLayout.CENTER);

		contentPanel.setBorder(BorderFactory.createEmptyBorder(10, 15, 0, 0));

		contentPanel.add(comp, fullWidth ? BorderLayout.CENTER : BorderLayout.WEST);

		JLabel label = new JLabel(name);
		Gui.registerFont(label, Font.BOLD);
		titlePanel.add(label, BorderLayout.NORTH);

		return panel;
	}
Base class for BSim Search dialogs that all have a server comboBox, and entries for the
similarity and confidence values.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/dialog/AbstractBSimSearchDialog.java