|
@ -3,6 +3,8 @@ package BattleShip; |
|
|
import javax.swing.*; |
|
|
import javax.swing.*; |
|
|
import javax.swing.border.Border; |
|
|
import javax.swing.border.Border; |
|
|
import java.awt.*; |
|
|
import java.awt.*; |
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
import java.awt.event.ActionListener; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.Random; |
|
|
import java.util.Random; |
|
|
|
|
|
|
|
@ -70,4 +72,9 @@ public class GridGUI { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
public class MyCellListener implements ActionListener { |
|
|
|
|
|
public void actionPerformed(ActionEvent a) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |