Download NetBeans!

20060906 Wednesday September 06, 2006

Download the Simpsons Visual Library Sample!

If you're interested in the sources of the Simpson drag-and-drop application, which uses the Visual Library 2.0 and the Component Palette API, with this result:

...then feel free to download the sources here:

org-netbeans-modules-visuallibraryintegrationmodulesample.nbm

When you install the module, you'll have a new sample called "Visual Library Integration Module Sample" in the Samples category (the highest level) in the New Project wizard.

When you look at the sources, you'll also be able to see how the context-aware help assistant works (i.e., that's the upper panel which has a message that changes, depending on what actions you perform). And, there is only one file in the whole module that makes use of the Visual Library:

org.netbeans.modules.simpsonsvisualizerfunctionality.GraphSceneImpl.java

There are still a couple of open issues, such as the layers not working properly (sometimes new items are hidden behind old items, such as the map). But most of the functionality is there. Again, you'll need to get the Graph library sources and make sure you have the two JARs mentioned in yesterday's blog available to your NetBeans Platform.

Sep 06 2006, 04:01:45 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/download_the_simpsons_visual_library
Comments:

I am trying to build your module but have this error: C:\VisualLibraryIntegrationModuleSample\build.xml:7: The following error occurred while executing this line: C:\VisualLibraryIntegrationModuleSample\nbproject\build-impl.xml:19: You must define 'nbplatform.NetBeans_IDE_Dev_(Build_060904).harness.dir'

Posted by Rami on June 17, 2007 at 09:52 PM PDT #

In project.properties or platform.properties you should see a property named (something like) 'nbplatform'. If not, you should add it. Set the value to 'default'. But anyway, this is a pretty old sample for the Visual Library. There's a better one in the Plugin Portal here.

Posted by 88.103.20.30 on June 17, 2007 at 11:46 PM PDT #

Hi,

I posted a comment yesterday, but forgot to put in the trackback url, so I repost it again; sorry about that.
I downloaded the simpson module ( thanks for the interesting example ), everything works except the zooming. That is, if I scroll the middle mouse wheel button, the zooming didn't happen as expected. But if I press down the CRTL key while scrolling the middle mouse wheel button, then the zooming works.
I am using Netbeans RC2 ( released version ). I tested the visual library test example alone, the zooming works without needing to press the CRTL key. So wonder if this only happens by setting the scene view to the JScrollPane viewport...

Anyone notice similar issue too? comments?

Thanks,
William

Posted by William on December 16, 2007 at 11:44 AM PST #

I already instaled the pluguin. Id like to know how can i acess de properties of the widgets???

Posted by Daniel Interliche on February 04, 2009 at 11:41 AM PST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed