lab5 preparations for pull request
This commit is contained in:
parent
49c7245c3b
commit
3e82235fc8
@ -186,12 +186,12 @@ public class FrameShipsCollection extends JFrame {
|
||||
private void buttonTrashClick(){
|
||||
if (trashCollection.size() == 0)
|
||||
return;
|
||||
FrameBattleship Frame;
|
||||
FrameBattleship frame;
|
||||
try {
|
||||
Frame = new FrameBattleship();
|
||||
frame = new FrameBattleship();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
Frame.setShip(trashCollection.pop());
|
||||
frame.setShip(trashCollection.pop());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user