I have created a custom button icon using an online tool, and then I have downloaded the .png file. I have already set the icon in the JButton (Swing Application), but, when the button is pressed, it doesn't show the regular animation when a button is clicked. Is it possible to set an Icon without losing this effect? Thanks (here's the code)
public final JButton SEARCH = new JButton();
SEARCH.setBorder(null);
SEARCH.setContentAreaFilled(false);
ImageIcon searchb = new ImageIcon(getClass().getClassLoader().getResource("search.png"));
SEARCH.setIcon(searchb);
