Scott Palmer: My Five Favorite NetBeans IDE Features!
Join the DZone community and get the full member experience.Join For Free
a series of articles focusing on netbeans users and their five favorite netbeans ide features
, here's the next part, by scott palmer. -- netbeans team.
scott palmer is an application architect at digital rapids corp. where he's been doing client-side desktop applications in java for over ten years. he's been programming computers since he first saw a commodore pet when he was in grade 5. he still loves to code and play around with tech toys. he's recently been experimenting with java 8 and javafx on the raspberry pi.
what are your 5 favorite netbeans ide features?
1. editor hints. they catch potential problems:
suggest a better way:
or help migrate to more compact/modern code:
the editor hints in netbeans helps me clean up my code and adapt it to new features.
2. standards-based projects and the gradle plugin. ...and netbeans support for industry standard build tools in general.
like most java developers, i used ant for building java projects, then tried maven. they both have their place, but as my projects got more complicated i needed a bit more. gradle is the next step in build tool evolution and i love it.
it's great that i can open my gradle-based projects in netbeans without having to go through any fancy "import" process. all my build tasks are accessible and large multi-project builds are supported.
thanks to geertjan for getting this started and attila for taking the reins and pushing it forward.
ant and maven support work out of the box and the gradle plugin is available from the update center. so whatever build tool you choose, netbeans has it covered and your projects will build on your integration server without needing netbeans installed.
3. support for gui design. starting with the swing ui builder (matisse) which offers an excellent drag and drop gui building experience. it is great for layout and support of the various layout managers, making sure the ui resizes well, etc. being able to wire up the event handlers in the same place helps get the ui up and going in very little time.
these days though, i’ve switched to javafx. (the javafx team has done a great job at making an improved gui framework.) netbeans works well with scenebuilder, so you can leave scene builder and netbeans running and things just stay synchronized between the two.
while that sort of integration was how scene builder was designed, netbeans takes it a bit further with the "make controller" action, which doesn’t just give you a skeleton of a controller class, but can be invoked repeatedly to update the existing controller with new fields and methods that you have added on the scene builder side.
4. version control aware change markers. indicators on both sides of the editor show you where you have made changes in the current file. clicking the markers in the gutter lets you see what used to be there and allows you to selectively undo edits in any order or bring up a full diff view. the markers on the right help you easily navigate to the areas you are working on. what’s great is that these changes are based on the version control system, not some undo buffer that is lost when you restart the ide.
my company has transitioned from subversion to mercurial and both systems have great support in netbeans out of the box.
5. project groups. around here there is always more than one project on the go at any given time. netbeans project "groups" allows me to flip from one context to another easily.
i can have the production code in one group for when i’m asked to reproduce an issue or make a patch. i can have the latest development code in another group, so i can easily flip back to working on the new features.
do you also want to share your favorite netbeans features with the world? write to netbeans dot webmaster at gmail dot com.
Opinions expressed by DZone contributors are their own.