Hi,
I was trying to make a test applet in web browser with
OOoBean. The office document started all very well.
However, the document was not displayed within the frame of
the applet as I expected,but out of the web browser. I've
tested the applet with m104 and m67, and with m67 the
document was nested in the frame, but no sidebars. Anything
wrong? Thank you in advance!
Regards,
Yu
Here's the applet I wrote:
public class ttt extends java.applet.Applet
{
private java.awt.Panel rightPanel;
private javax.swing.JButton new_F;
private com.sun.star.comp.beans.OOobean oBean;
public void init()
{
rightPanel= new java.awt.Panel();
new_F= new javax.swing.JButton("new");
oBean= new com.sun.star.comp.beans.OOobean();
new_F.addActionListener(new
java.awt.event.ActionListener()
{
public void actionPerformed
(java.awt.event.ActionEvent evt)
{
com.sun.star.beans.PropertyValue []
aSet= new com.sun.star.beans.PropertyValue[0];
oBean.loadFromURL
("private:factory/swriter", aSet);
oBean.acquireSytemWindow();
}
});
rightPanel.setLayout( new java.awt.GridLayout(1,1) );
rightPanel.add(new_F);
setLayout(new java.awt.BorderLayout());
add(oBean, java.awt.BorderLayout.CENTER);
add(rightPanel, java.awt.BorderLayout.EAST);
}
public static void main(String args[])
{
java.awt.Frame frame = new java.awt.Frame
("OpenOffice.org Demo");
ttt test = new ttt();
frame.setLayout(new java.awt.BorderLayout());
test.init();
test.start();
frame.add(test);
frame.setLocation( 200, 200 );
frame.setSize( 800, 480 );
frame.show();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]