Geertjan's Blog

  • August 12, 2008

OutlineView Sample

Geertjan Wielenga
Product Manager
The Plugin Portal now provides a new sample demonstrating the new (NetBeans Platform 6.5) Explorer View called "OutlineView", which is a simpler and more powerful alternative to the NetBeans TreeTableView:


After downloading and installing the plugin, you will find the sample here:

After completing the wizard, you will have these sources:

Run the sample module and you will have a TopComponent with this content:

A new tutorial that will result in the above sample will be created this week. It will be based on these two resources:

So watch this space for the announcement of the new tutorial that relates to this subject. In the meantime, feel free to download the sample and inspect the sources and adapt them to your own scenarios.

Join the discussion

Comments ( 5 )
  • matteodg Tuesday, August 12, 2008

    To be more precise: FileTopComponent class implements ExplorerManager.Provider, but really it is useless since you do not use OutlineView, you use Outline, the pure Swing component beneath OutlineView (NB oriented view): so this is an example for Outline not for OutlineView.

    Then it could reside in a pure JavaSE application project not in a NB module :)

  • Geertjan Tuesday, August 12, 2008

    Thanks, matteodg. Those bits confused me a bit, in retrospect. I'll have a look at it again as I work on the tutorial.

  • Geertjan Tuesday, August 12, 2008

    Updated the sample to 1.2, which removes the ExplorerManager.

  • petia Monday, January 19, 2009

    Why do you name your sample "OutlineView Sample", if this is Outline sample. Don't confuse people.

    Could you show real Outline sample?

  • Xavier Callejas Friday, March 25, 2011

    Hi Geertjan, how can I set the height size of the rows? OutlineView.getOutline().setRowHeight(int) does nothing.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.