I see that there is a JButton constructor which takes an Icon as a parameter… but how do I get an Icon from a bitmap file?
Also, are there “record” and “stop” Icons available from the default look and feel? or do I have to provide them myself?
You can create an ImageIcon from a URL, among other things (including a filename or a byte array).
You can also pass any Image into the constructor, meaning you can take full advantage of the ImageIO utility class.