September 18, 2009 – 5:01 pm
If you create the persistence.xml manually in Windows the file will be created with CRLF line endings (windows style line endings) ,that will prevent Netbeans for recognizing Netbeans will not recognize it as the special file it is and won’t be able to to open it with the special/custom visual editor.
I opened an bug [...]
By ruben.laguna
|
Posted in java, netbeans
|
Also tagged break, crlf, editor, ending, eol, feed, file, filetype, jpa, lf, line, line feed, linebreak, linefeed, netbeans, persistence, recognition, type
|
I spent some time on GraphBrowser, starting off the project, the first step has been to add basic support for opeining Graphviz DOT files.
There are already some pages on the net talking about how to add open file support for new file types in NetBeans.
File Type Integration Tutorial
So there is no need to [...]
By ruben.laguna
|
Posted in java, netbeans
|
Also tagged api, dot, file, graph, graphbrowser, graphviz, guess, java, library, netbeans, open, support
|
I decided to start a small project trying to port the GUESS framework into Netbeans RCP.
The plan is to replace the GUESS own graphical library with Netbeans Visual Library stuff and replace the GUESS Python like interpreter with something more along the lines of JSR 223 Scripting for the Java Platform.
For the moment I [...]
I was fiddling with the Netbeans Visual Library again, trying to show a complex graph on screen and I run into a problem: There were so many connection in the graph that some widgets were hard to read because the ConnectionWidget arrows were printed over them.
So I tried to I try to rearrange the [...]
By ruben.laguna
|
Posted in netbeans
|
Also tagged connectionwidget, graph, illegalstateexception, java, labelwidget, layerwidget, library, netbeans, order, visualization, widget
|
If you’re getting a NullPointerException stacktrace like the one below while using the Netbeans Visual Library to create your own GraphScene, check that your adding your widgets propertly to scene. A good idea is to use LayerWidgets, declaring them in the constructor of your GraphScene:
mainLayer = new LayerWidget(this);
addChild(mainLayer);
connectionLayer = new LayerWidget(this);
addChild(connectionLayer);
and then add the widgets [...]
By ruben.laguna
|
Posted in netbeans
|
Also tagged addchild, connectionwidget, fontdesignmetrics, labelwidget, layer, layerwidget, library, metricskey, netbeans, nullpointerexception, widget
|
I just came up with the idea of reproducing the GraphView demo I saw in prefuse by using the Netbeans Visual Library API.
The GraphView demo uses a Force Directed Layout algorithm to dinamically position the nodes on the screen. It’s really fast and cool. Download prefuse and experiment with it by yourself.
I [...]
By ruben.laguna
|
Posted in java, netbeans
|
Also tagged algorithm, based, force, graph, layout, library, netbeans, prefuse, topcomponent, visualization, visualizer
|