If you are creating a new MIDlet, you can specify the icon when using the New File wizard (File > New File). If you have already created a MIDlet, open project properties (File > YourProjectName Properties) and select 'Application Descriptor > MIDlets', then select the MIDlet in right pane and push the 'Edit ...' button.

Source: NetBeans User FAQ