I am in the early stages of learning the NetBeans platform. I note that NetBeans 7.0 makes extensive use of annotations to register classes, specify window modes etc. This is a nice feature, but the learning materials that I've found so far (Rich Client Programming, The Definitive Guide, the tutorials at netbeans.org, and the latest refcard) all make extensive reference to inspecting and editing the layer.xml file. Since I'm still in the lower foothills of the learning curve I'm finding it hard to juggle annotated code with layer file examples.
I'm considering dropping back to a 6.x version of NetBeans while learning, to be in sync with the books and tutorials, at least until I get the core API and basic practices under my belt. I'd appreciate hearing from experienced NetBeans platform users and developers on whether that's sensible, or if it might be better, in the long term, to stick with NetBeans 7 from the beginning.
What actually happens behind the scenes with the annotations is that a layer.xml entry is created for you. So you don't need to use the annotations, if the tutorial you are working with deals entirely with layer entries then just use layer entries.
The thinking is that it's a lot easier to understand and find annotations then layer entries. This seems to be whats going to happen with a lot of the layer entries(dynamically created via annotations) going forward. However while they are transitioning it definitely causes confusion!
In fact, there's no references to layer.xml in the latest refcard at all, nor to those tutorials that have been updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With