private JPanel createCollisionPanel() {
		JPanel parent = new JPanel(new BorderLayout());

		JPanel noWrapPanel = new JPanel(new BorderLayout());
		collisionPane = new JTextPane();
		collisionPane.setEditable(false);
		collisionPane.setBackground(bgColor);
		doc = collisionPane.getStyledDocument();
		noWrapPanel.add(collisionPane, BorderLayout.CENTER);
		JScrollPane sp = new JScrollPane(noWrapPanel);
		sp.getAccessibleContext().setAccessibleName("Scroll");
		Dimension d = defaultPanel.getPreferredSize();
		sp.setPreferredSize(new Dimension(sp.getPreferredSize().width, d.height));
		parent.add(sp, BorderLayout.CENTER);
		parent.getAccessibleContext().setAccessibleName("Collision");
		return parent;
	}
Dialog to set the key binding on an action. It is triggered by the F4 key.
Ghidra/Framework/Docking/src/main/java/docking/actions/KeyEntryDialog.java