How to set dock icon of Java application
This solution is only available from JDK 9. In other to set the JDK version on NetBeans, right click on Project > “Properties” >> “Sources” > “Source/Binary format”; and “Libraries” > “Java Platform”. package main; import javax.swing.JFrame; import javax.swing.JLabel; import…