OutlineView Sample

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:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=12094

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.

Comments:

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 :)

Posted by matteodg on August 12, 2008 at 07:33 AM PDT #

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

Posted by Geertjan on August 12, 2008 at 07:36 AM PDT #

Updated the sample to 1.2, which removes the ExplorerManager.

Posted by Geertjan on August 12, 2008 at 07:49 AM PDT #

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

Posted by petia on January 18, 2009 at 06:53 PM PST #

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

Posted by Xavier Callejas on March 25, 2011 at 01:55 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
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
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
23
24
25
26
27
28
29
30
   
       
Today