Generate getters and setters in NetBeans

Zvjezdan picture Zvjezdan · Jan 12, 2014 · Viewed 122.7k times · Source

I Need to know how to have NetBeans generate getters and setters using a shortcut.

Answer

Stefano Sanfilippo picture Stefano Sanfilippo · Jan 12, 2014

Position the cursor inside the class, then press ALT + Ins and select Getters and Setters from the contextual menu.