Visual Library Tutorial (Part 1)

The Visual Library 2.0 Tutorial (Part 1) is available. Note it is a draft and there are one or two issues to resolve, watch this space. However, there's enough information to give you an overview of the available functionality.

The following topics are covered in the tutorial:

  • Installing and Setting Up the Software
  • Getting Started
  • Creating the Scene
  • Creating a Component Palette for the Scene
  • Adding a LayerWidget
  • Adding an IconNodeWidget via Drag and Drop Functionality
  • Adding Functionality to the Scene
  • Adding Functionality to the IconNodeWidget

Future parts of this tutorial will go into further detail, hopefully with most/all features of the API ultimately being discussed. Click here to get to the tutorial.

My previous blog entries on the Visual Library 2.0:


Your tutorial doesn't compile / work under NB 6 m9, because of the palette stuff. Also, where is the complete source code of the example ? Please redo this tutorial.

Posted by m on May 21, 2007 at 10:40 AM PDT #

Well, it wasn't written for NB 6 m9, was it? So don't be surprised that it doesn't work for NB 6 m9. Sure, at some point, all tutorials will be updated to NB 6. But, not right now.

Posted by Geertjan on May 21, 2007 at 07:09 PM PDT #

Hi, thanks for the excellent tutorial. I am having one problem, Dnd doesnt work for me, I am not able to compile the section of code that has the "createAcceptAction" piece of code doesnt compile. It seems to be the isAcceptable and the accept functions which are an issue. Errors are: E:\\Development\\5.5\\ShapeSample\\src\\org\\netbeans\\shapesample\\ <anonymous org.netbeans.shapesample.GraphSceneImpl$1> is not abstract and does not override abstract method isAcceptable(org.netbeans.api.visual.widget.Widget,java.awt.Point,java.awt.datatransfer.Transferable) in org.netbeans.api.visual.action.AcceptProvider public void accept(Widget widget, Point point, Transferable transferable) { E:\\Development\\5.5\\ShapeSample\\src\\org\\netbeans\\shapesample\\ isAcceptable(org.netbeans.api.visual.widget.Widget,java.awt.Point,java.awt.datatransfer.Transferable) in cannot implement isAcceptable(org.netbeans.api.visual.widget.Widget,java.awt.Point,java.awt.datatransfer.Transferable) in org.netbeans.api.visual.action.AcceptProvider; attempting to use incompatible return type found : boolean required: org.netbeans.api.visual.action.ConnectorState Any help would be great! thanks

Posted by Rajan on May 23, 2007 at 05:18 PM PDT #

I would like to see layout examples especially with graphpinscene. thanks.

Posted by guest on November 04, 2011 at 06:43 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

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.


« May 2016