gb.setConstraints(strut, gc); panel.add(strut);
JOptionPane pane = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE,
JOptionPane.OK_CANCEL_OPTION);
pane.setInitialValue(field);
JDialog dlog = pane.createDialog(frame, Strings.get("circuitNameDialogTitle"));
dlog.addWindowFocusListener(new WindowFocusListener() {
public void windowGainedFocus(WindowEvent arg0) {
field.requestFocus();
}
public void windowLostFocus(WindowEvent arg0) { }