Introduction - If you have any usage issues, please Google them yourself
mport javax.swing .* import java.awt.event .* public class Block extends JButton implements ActionListener (ImageIcon icon when opened = null, the closure of the icon = null public Block () (addActionListener (this)) public ImageIcon icon at the time of access to open () (return icon when opened) public ImageIcon access to the closure of the icon () (return shutdown icon) public void opened when the icon settings (ImageIcon icon) (look at the icon = icon) public void shutdown icon settings (ImageIcon icon) (shutdown icon = icon) public void settings icon (ImageIcon icon) (setIcon (icon)) public void actionPerformed ( ActionEvent e) (this.setIcon (open at the time of the icon)))