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, layerwidget, library, metricskey, netbeans, nullpointerexception, visual, widget
|
After learning about the Favorites window in the NetBeans Platform Quick Start. I wanted to use it in an application of my own.
This easy task became more difficult that I though because I was getting random results, sometimes after a clean build I got the Favorites window open and sometimes not.
But let’s start from [...]
The default Netbeans Platform Application generated by the Netbeans IDE wizard has the Save, Undo and Redo button showing up in the toolbar by default.
Since my applications doesn’t have anything to save I decided to hide those buttons.
I turns out that remove them is really simple, I knew that I had to fiddle with [...]
By ruben.laguna
|
Posted in netbeans
|
Also tagged actions, api, folder, hidden, hide, netbeans, platform, remove, saveaction, toolbar, toolbars
|