I have a program that detects when certain machines are online and creates a button with a green \"online\" icon to show this. I want to add the functionality to check perio
btn1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/url.png")));