×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Massimo Zappino
Added: Dec 30, 2015 2:33 PM
Modified: Aug 27, 2017 3:32 PM
Views: 13
  1. JButton button = new JButton();
  2. ImageIcon imageIcon = new ImageIcon(getClass().getClassLoader()
  3.         .getResource("icons/refresh.png"));
  4. button.setIcon(imageIcon);