David Heffelfinger: 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 david heffelfinger -- netbeans team.
david heffelfinger is the chief technology officer of ensode technology, llc, a software consulting firm based in the greater washington dc area. he has been architecting, designing and developing software professionally since 1995 and has been using java as his primary programming language since 1996.
he has worked on many large scale projects for clients including the us department of homeland security, freddie mac, fannie mae, and the us department of defense. he has a masters degree in software engineering from southern methodist university. david is editor in chief of ensode.net ( http://www.ensode.net ), a website about java, linux, and other technology topics. he's also a published author with several books available at packt, as well as a screencast course on java ee 7 . he's currently working on a new book about java ee 7 and netbeans ide 8.
what are your 5 favorite netbeans ide features?
1. distraction free mode.
this is a simple feature, but makes your life so much easier when you are working on a small screen. netbeans ide is very powerful, and by default it has a toolbar with several icons near the top of the screen, plus several windows open, the projects, files, and services window on the left, the navigator window, the output window at the bottom, plus the main editor area. this is great when working with a large monitor, since there is a lot of information that can be gathered at a glance, and a lot of functionality that can be accessed by a simple mouse click.
however, when working with a small screen, such as a laptop screen, it can get cramped. the distraction free mode introduced in netbeans ide 7.4 takes care of this issue, just hit ctrl+shift+enter (or select the editor and then choose view | show only editor in the main menubar) and the current window will be maximized inside the ide, hiding all other windows.
it now has the look and feel of a text editor, with the power of an ide!
2. jpa generation. this is not a new feature, but still a great time saver. i work as a consultant for different customers, and not all of them have adopted netbeans ide as their standard ide. however, i’ve converted more than a few to netbeans ide by showing them this feature alone.
3. primefaces integration.
netbeans ide has had the ability to generate jsf crud applications for a long time. this feature allows us to quickly generate web based applications from a set of database tables. the generated pages, however, were fairly simple looking.
in netbeans ide 8 the ability to generate crud applications using primefaces was added. the generated primefaces pages are very aesthetically pleasing.
4. maven integration.
maven tends to generate strong opinions among java developers, it seems that you either love maven or hate it. i happen to fall into the first camp. again, being a consultant, i don’t always get to work with teams that have standardized in netbeans ide, so i’m always glad to find out the project i’m working on uses maven, since all three major ides support maven to some extent, making the project ide independent.
netbeans ide maven support is head and shoulders above other java ides, it is very seamless, just open any random maven project and netbeans ide takes it from there, it figures out all the dependencies, and the ide menu items (clean, build, run, etc) automatically invoke the appropriate maven goals.
additionally, when adding dependencies, i frequently remember the name of a class i need, but i seldom remember the maven coordinates for the dependency. netbeans ide allows me to search the maven repositories for the class i’m looking for.
5. java ee application server integration.
netbeans ide seamlessly integrates with most popular java ee application servers and servlet containers such as glassfish, wildfly/jboss, tomcat, tomee, and weblogic.
when i join a new project, chances are the application server the customer is using seamlessly integrates with netbeans ide. not having to leave the ide to start or stop the server or to deploy the code is very nice.
bonus feature: other ide keymaps.
i’ve often demoed netbeans ide projects and developers not familiar with netbeans ide are sometimes impressed by its features, such as the seamless java ee application server integration, maven integration, and jpa generation capabilities.
however, some of these are long time users of other ides and have memorized the keyboard shortcuts of their current ide, so they are hesitant to migrate because they don’t want to have to learn a whole new set of keyboard shortcuts.
a very nice feature is that netbeans ide comes with keymaps for the two other popular java ides out of the box, so all of these developers have to do is set the keymap to their ide of choice and they are good to go:
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.