Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Hani Ibrahim
Added: Aug 16, 2018 5:02 PM
Views: 7
Put the code below in the JFrame's Properties form. This will put the code in the NetBean's generated code block.
To do this, go to the Design mode, right click on the JFrame->Properties. Click the ellipsis button next to
iconImage in the Properties form and choose Custom Code.
  1. new ImageIcon(getClass().getResource("xxxx.xxx")).getImage()