--- OOoBeanViewer.java +++ OOoBeanViewer.java @@ -32,8 +32,6 @@ * *************************************************************************/ -package com.sun.star.comp.beans; - import javax.swing.filechooser.*; import javax.swing.*; import java.io.*; @@ -76,7 +74,7 @@ public class OOoBeanViewer extends java. /** * Private variables declaration - SimpleBean variables */ - private OOoBean aBean; + private com.sun.star.comp.beans.OOoBean aBean; /** * Initialize the Appplet @@ -84,7 +82,16 @@ public class OOoBeanViewer extends java. public void init() { //The aBean needs to be initialized to add it to the applet - aBean = new OOoBean(); + com.sun.star.comp.beans.LocalOfficeConnection c = + new com.sun.star.comp.beans.LocalOfficeConnection(); + try { + c.setUnoUrl("uno:socket,host=localhost,port=8123;urp;StarOffice.ServiceManager"); + aBean = new com.sun.star.comp.beans.OOoBean(c); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new RuntimeException(e); + } //Initialize GUI components rightPanel = new java.awt.Panel();