Thursday Nov 06, 2008

18 November: NetBeans Demo Camp, Munich

If you're in Germany (anywhere in Germany, come on, it's not so big, Munich is more or less accessible from everywhere), here's a program (in draft form, but this is the basic idea) that you can't afford to miss, for the first NetBeans Demo Camp in Munich:
  • "New Features in NetBeans Platform 6.5"
    Geertjan Wielenga, NetBeans Guru, Sun Microsystems Inc., Prag.

  • "Demosession: ChipInspector - NetBeans APIs im Einsatz"
    Tanja Drüke, Genomatix Software GmbH, Munich, Germany.

  • "RCP Entwicklung in der Praxis: Third-party libraries und ClassLoader"
    Anton Epple, NetBeans Dream Team Member, Eppleton, Munich, Germany.

  • "Portierung von Swing Applikationen auf die NetBeans Platform"
    Aljoscha Rittner, CEO, Sepix GmbH, Hann. Münden, Germany.

  • "Grosseinsatz - NetBeans RCP im Grossprojekt"
    Sven Reimers, NetBeans Dream Team Member, ND SatCom Defence GmbH, Immenstadt, Germany.

That's about the best set of NetBeans Platform presentations one can imagine. Apart from myself, everyone on the program is loosely coupled from Sun, talking about their own practical experiences with the NetBeans Platform in corporate Swing application development environments. Tuesday, 18 November, from 16.00 to 20.00. All the details for this event, also for registration purposes and how to get there, can be found here:

http://netbeansdemocamp.eventbrite.com/

The usage of the plural "pubs" in the following statement is especially promising: "The event will officially end at 8 p.m. After the event we will celebrate NetBeans 10th birthday and the release of NB 6.5 in nearby pubs."

How to Create a Menu Item to Invoke a PDF Document

In situations where you want a menu item to produce a PDF document (e.g., as in the case with the shortcuts.pdf card in NetBeans IDE), do the following:

  1. Switch to the Files window, create a top-level folder called 'release' in your module source structure, and put your PDF document there.

  2. Create an XML file with this content:
    <!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD PDF Document Menu Link 1.0//EN" 
    "http://www.netbeans.org/dtds/pdf_link-1_0.dtd">
    <pdfLink>
        <idefile base="shortcuts"/>
    </pdfLink>

    The above implies that the document will be named 'shortcuts.pdf' and that it will be found within the main folder of the module. If you put 'docs/shortcuts', for example, then the 'docs' folder of the module will be used instead. But then you would have to put the PDF in 'release/docs' instead.

  3. In your layer.xml file, register the above XML file, which in this case is called 'shortcuts.xml', as follows:
    <file name="shortcuts.xml" url="nbresloc:/com/me/bla/shortcuts.xml">
         <attr name="SystemFileSystem.localizingBundle" stringvalue="com.me.bla.Bundle"/>
         <attr name="position" intvalue="480"/>
    </file>

  4. In the Bundle referenced above, put the following:
    Menu/Help/shortcuts.xml=Keyboard Shortcuts

Thanks to this mail thread, I put the above steps together. Similarly, you can open a URL instead of a PDF from a menu item, following these instructions.

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« November 2008 »
SunMonTueWedThuFriSat
      
4
7
15
16
17
20
22
23
25
27
29
30
      
Today