Geertjan's Blog

  • October 6, 2006

Visual Library Tutorial (Part 1)

Geertjan Wielenga
Product Manager
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:

Join the discussion

Comments ( 4 )
  • m Monday, May 21, 2007
    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.
  • Geertjan Tuesday, May 22, 2007
    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.
  • Rajan Thursday, May 24, 2007
    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\\GraphSceneImpl.java:62: <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\\GraphSceneImpl.java:48: 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
  • guest Friday, November 4, 2011

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

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