JPanel content = new JPanel(new BorderLayout());
JPanel content = new JPanel(new BorderLayout()) {  public boolean isManagingFocus() { return false; }   public boolean getFocusTraversalKeysEnabled() { return false; } };
	public GrabKeyDialog(Component comp, String command)	{		super(JOptionPane.getFrameForComponent(comp),			jEdit.getProperty("grab-key.title"),true);		JPanel content = new JPanel(new BorderLayout());		content.setBorder(new EmptyBorder(12,12,12,12));		setContentPane(content);		JLabel label = new JLabel(jEdit.getProperty(			"grab-key.caption",new String[] { command }));		label.setBorder(new EmptyBorder(0,0,6,0));		content.add(BorderLayout.NORTH,label);		shortcut = new JTextField();		shortcut.setEnabled(false);		content.add(BorderLayout.CENTER,shortcut);		JPanel buttons = new JPanel();		buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));		buttons.setBorder(new EmptyBorder(12,0,0,0));		buttons.add(Box.createGlue());		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(new ActionHandler());		buttons.add(ok);		buttons.add(Box.createHorizontalStrut(12));		cancel = new JButton(jEdit.getProperty("common.cancel"));		cancel.addActionListener(new ActionHandler());		buttons.add(cancel);		buttons.add(Box.createGlue());		content.add(BorderLayout.SOUTH,buttons);		setDefaultCloseOperation(DISPOSE_ON_CLOSE);		pack();		setLocationRelativeTo(comp);		setResizable(false);		show();	}