To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49454
Issue #:|49454
Summary:|OOoBean: No keyboard input possible
Component:|api
Version:|680m100
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|code
Assigned to:|jl
Reported by:|jl
------- Additional comments from [EMAIL PROTECTED] Wed May 18 05:26:02 -0700
2005 -------
When Running a test where the bean is repetedly added and removed to a Java
frame, sometimes no keyboard input is possible anymore. Maybe one could force
the childwindow (the office window) to set the focus, when it is "reparented",
that is, it receives the java window as parent.
final OOoBean bean = new OOoBean();
java.awt.Frame frame = new java.awt.Frame("OpenOffice.org Demo");
frame.add(bean, BorderLayout.CENTER);
frame.pack();
frame.setSize(600,300);
frame.show();
bean.loadFromURL("private:factory/swriter", null);
for (int i = 0; i < 100; i++)
{
bean.releaseSystemWindow();
frame.remove(bean);
frame.add(bean, BorderLayout.CENTER);
bean.aquireSystemWindow();
}
frame.addWindowListener( new WindowAdapter() {
public void windowClosing( java.awt.event.WindowEvent e) {
try {
bean.stopOOoConnection();
} catch (Exception exc) {
}
((java.awt.Window)e.getSource()).dispose();
}
});
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]