001/* 002 * Reset.java 003 */ 004package minesweeper; 005 006//import java.awt.*; 007 008import java.awt.event.*; 009import javax.swing.*; 010 011import org.apache.logging.log4j.*; 012 013/** 014 * DESCRIBE {@link Reset} HERE. 015 * 016 * @author 2017-2018 APCS 017 * @author ADD @author TAG FOR EVERYONE WHO CONTRIBUTED TO THIS FILE 018 * @author David C. Petty // https://github.com/wps-dpetty 019 */ 020public class Reset extends JButton implements ActionListener { // Need to ensure it completely wipes game State. Especially because if you win or lose, You don't want that condition dogging you 021 /** 022 * log4j {@link Logger}. 023 */ 024 private static Logger logger = LogManager.getLogger(Minesweeper.SHORT); 025 026 public Reset(ImageIcon ico) { 027 logger.info(this); 028 this.setIcon(ico); 029 addActionListener(this); 030 } 031 032 public void actionPerformed(ActionEvent e) { 033 //System.out.print(row + " " + column); 034 //Main.stopTimer(); 035 } 036}