I Need to know how to have NetBeans generate getters and setters using a shortcut.
Position the cursor inside the class, then press ALT + Ins and select Getters and Setters
from the contextual menu.
来源:https://stackoverflow.com/questions/21074402/generate-getters-and-setters-in-netbeans