Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Netbeans

You're reading from  Mastering Netbeans

Product type Book
Published in Aug 2015
Publisher
ISBN-13 9781785282645
Pages 348 pages
Edition 1st Edition
Languages
Toc

Table of Contents (17) Chapters close

Mastering NetBeans
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with NetBeans 2. Editing Files and Projects 3. The NetBeans Developer's Life Cycle 4. Managing Services 5. Database Persistence 6. Desktop Development 7. Creating the Business Layer 8. Creating the Web Tier 9. Creating and Consuming Web Services 10. Extending NetBeans Index

Macro recording and playback


In the previous sections, we've seen how to quickly insert stock code into a source code file via both code templates and dragging and dropping palette items. The next technique for modifying or inserting new code into a file that we will look at is macros.

Within NetBeans, macros allow us to capture screen recording and then assign the recording to a keyboard shortcut, which, when selected, will playback the recorded keystrokes. This can be very useful for performing automated tasks against a source code file or indeed, any editable file.

A basic installation of NetBeans is supplied with three existing macros. To view the macros that are stored within NetBeans, access the NetBeans Options menu (select Tools and then Options from the main menu on Windows and Linux or select NetBeans and then Preferences… from the menu on a Mac). In the Options dialog, select the Editor option and then the Macros tab to see how macros are defined within NetBeans:

As can be seen in...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}