I'm using the desing view to add components to the JFrame, I create a package "res" and copied the images files and add the image to the JLabel with options, properties/icon/Image with Project/ selecting res package and the file .png, but i don't know why I'm getting this exception:
line 75 exception: jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons8customer32px1.png"))); // NOI18N
If I remove the icon it doesn't crash, if any have an idea why this happen? thanks
private void initComponents() {
jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/icons8customer32px1.png")));
}// </editor-fold>
I'm using this steps for handling images: https://netbeans.org/kb/73/java/gui-image-display.html