Download NetBeans!

20061006 Friday October 06, 2006

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:

Oct 06 2006, 12:11:37 PM PDT Permalink

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

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 05:40 PM 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 22, 2007 at 02:09 AM 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\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

Posted by Rajan on May 24, 2007 at 12:18 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed