The toolbar icons in NetBeans can be shown in a smaller size. We have to go to View | Toolbars and then select Small Toolbar Icons. To get the bigger icons back we simply deselect Small Toolbar Icons.