//Bug fix: actually open the file
openEditor(dob);
EditorCookie ck = (EditorCookie) dob.getCookie(EditorCookie.class);
if (ck != null) {
ck.openDocument();
JEditorPane[] p = ck.getOpenedPanes();
if (p.length > 0) {
//Need to do this since we're disabling the window system's
//auto focus mechanism
p[0].requestFocus();