which method is used to display icon on a jbutton component code example Example: how to create a button in java JButton button = new JButton();