NetBeans 6 Feature Highlight: Duplicating Components
By Roman Strobl on VI 11, 2007
I plan to focus on various new and cool features in NetBeans 6 durign the "NetBeans 6 Feature Highlight" series. I think this is helpful for developers - you can learn about these new features in a more interesting way than studying the docs - you can see how to use the particular feature from the screenshots.
Today I decided to highlight the component duplication feature in Matisse. You can now select any component (or components using the Shift key) and right click to choose duplicate:
Now the panel is duplicated and the new panel is moved automatically to the correct position under old panel:
When I run the duplicate action again (on the first component!) it will duplicate it again but this time it will add it under the second panel:
In NetBeans 5.5 there was only very limited copy-paste functionality, which often broke the form. In NetBeans 6.0 the duplication features are more intelligent and you can save some time especially if you create forms with many similar panels or elements.