Suggest a feature

Welcome to TagMyCode

Please login or create account to add a snippet.
Language: Java
Posted by: Hani Ibrahim
Added: Aug 16, 2018 5:02 PM
Views: 17
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("")).getImage()