X

Geertjan's Blog

  • June 13, 2006

Star Office Inside NetBeans IDE

Geertjan Wielenga
Product Manager
I'm preparing a presentation for the NL-JUG's J-Spring conference (to be held in the Netherlands on Thursday) and... guess what? Thanks to Sun Technology evangelist Chuk Munn Lee, I am preparing my Star Office presentation inside NetBeans IDE! The module is still experimental, but it seems to be almost finished. For a quick look at what you too will soon be able to do inside NetBeans IDE, click on the screenshot below to enlarge it:

Chuk's module lets you do any Star Office task (create presentations, text documents, graphs, whatever) inside the IDE. Now we need someone to integrate some screen grab tool inside the IDE, so that one would be able to grab screenshots inside the IDE from a menu item (or some more complex u.i. implementation) inside the IDE and then paste them in a Star Office slide inside the IDE... Who wants to take up the challenge?

Join the discussion

Comments ( 5 )
  • Juan Ara Tuesday, June 13, 2006

    Doh'!

    Poor Geertjan, all work with iText done and now you can just open a Writer document inside Netbeans and choose "save as PDF" ;)

    Nice features, will netbeans soon be converted into a masive +200Mb applet and roll over Goofflice?

  • Robert Thornton Tuesday, June 13, 2006
    This is very cool. Is there a nbm that we can test-drive? And will it work with OpenOffice as well? I'm assuming that the module doesn't actually install StarOffice itself but merely embeds an existing StarOffice installation in the IDE similar to the way JDIC embeds the native browser.
  • Robert J. Saulnier Wednesday, June 14, 2006
    Nice module!

    You can get the NBM or the source here:

    http://blogs.sun.com/roller/page/chuk?entry=staroffice_for_netbeans_module

    On Windows, I was getting a NPE and ClassNotFoundException.

    To fix the NPE, in the method propertyChange in the class Installer, change the first line to:

    if (!StarOfficeConfiguration.STAROFFICE_HOME.equals(evt.getPropertyName()))

    And for the ClassNotFoundException, change all the method parameters of replaceAll(...) in classes OfficeBeanUtility and StarOfficeConfiguration to:
    replaceAll("\\\\\\\\", "\\\\\\\\");

    And in OfficeBeanUtility, to create a URL just use one slash:

    new URL("file:/" + so + soJar)

    Hope these limited instructions help!

    PS. It works with OpenOffice!

    Bob

  • Wouter van Reeven Wednesday, June 14, 2006
    At the NL-JUG conference I will do a presentation about the OOo Java API. For all my examples I am using NetBeans 5.0 though I have done my coding the old-fashioned (i.e. hard) way. And I am not using the OOoBean as well.
    Greets, Wouter
  • Lee Chuk Munn Wednesday, June 14, 2006
    Thanks. I've made some changes to the module. You can find the latest src and nbm here:
    http://blogs.sun.com/roller/page/chuk#second_try_netbeans_module_for
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.