JIconButton.java A simple button that the user can select to load the entered URL.
import javax.swing.*;
/** A regular JButton created with an ImageIcon and with borders
* and content areas turned off.
*
*/
public class JIconButton extends JButton {
public JIconButton(String file) {
super(new ImageIcon(file));
setContentAreaFilled(false);
setBorderPainted(false);
setFocusPainted(false);
}
}