Hi everyone on the forum.
I currently have this code in my "About Box" Java which allows for an image to display:
ImageIcon icon = createImageIcon("icon.gif", "The app icon.");
appIcon = new JLabel (icon);
I was wandering if it is possible to make it so that when the image is clicked on a brief aif sound clip is played, as a sort of easter egg. Is this possible? If so, does anyone know how to do it?
Ideally I would like it to play a random sound from an arraylist of sounds, but if this isn't possible then one sound will suffice.
I currently have this code in my "About Box" Java which allows for an image to display:
ImageIcon icon = createImageIcon("icon.gif", "The app icon.");
appIcon = new JLabel (icon);
I was wandering if it is possible to make it so that when the image is clicked on a brief aif sound clip is played, as a sort of easter egg. Is this possible? If so, does anyone know how to do it?
Ideally I would like it to play a random sound from an arraylist of sounds, but if this isn't possible then one sound will suffice.