|
|
@ -150,6 +150,7 @@ public class BShip { |
|
|
|
} |
|
|
|
} else { |
|
|
|
textArea.setText(grid2.getText()); |
|
|
|
} |
|
|
|
if(grid1.getClicked()) { |
|
|
|
|
|
|
|
textArea.setText(grid1.getText()); |
|
|
@ -169,7 +170,7 @@ public class BShip { |
|
|
|
|
|
|
|
grid1.setClicked(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -182,8 +183,7 @@ public class BShip { |
|
|
|
synchronized (lock) { |
|
|
|
try { |
|
|
|
lock.wait(); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
} |
|
|
|
} catch (InterruptedException e) {} |
|
|
|
} |
|
|
|
} |
|
|
|
grid1.enableCells(); |
|
|
|