I try SimpleBootstrap_java.java (and another exampel form OfficeDev) and it
work fine with both (kde and gtk).How I can add open OO frame to my Java panel
(frame) ?
As I mentioned before, OOoBean needed a way to receive the component
context to fully support this example. This is not yet implemented. But
I may work nonetheless, because now the application and the bean will be
loaded with a special classloader that knows the location of the jar
files. Notice that this classloader is used by
LocalOfficeConnection.getProgramPath to find the office.
Did you try that out? Is the office located and started?
Add the OOoBean to the panel as you would do with every other component.
For example:
m_bean = new com.sun.star.comp.beans.OOoBean();
add(m_bean, BorderLayout.CENTER);
pack();
setBounds(x, y, width, height);
setVisible(true);
m_bean.loadFromURL("private:factory/swriter", null);
validate(); //may not be necessary
--Joachim
Thanks
---------------------------------------------------------------------
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]