Netbeans Code Folding
If you're using Netbeans and you want to enable code folding for a particular region, use this: // <editor-fold defaultstate="collapsed" desc="Private Methods"> // Your code goes here... // </editor-fold> This will result in a code-folding region in your code.