Skip to content
Snippets Groups Projects
Commit 4503fe0b authored by steyer's avatar steyer
Browse files

Néhány TODO elintézve

parent 7038da2f
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ public class GameModel extends AbstractTableModel {
return Boolean.class;
}
public void start() { //TODO álljon meg bezárásnál
public void start() {
editable=false;
runner.resumeRunner();
}
......@@ -75,7 +75,6 @@ public class GameModel extends AbstractTableModel {
}
public void step() {
//TODO törölni
board.step();
fireTableDataChanged();
}
......
......@@ -7,8 +7,6 @@ import java.awt.*;
public class GameWindow extends JFrame {
//TODO JMenu
private GameModel model;
private JTable table;
JFileChooser fileChooser;
......
......@@ -7,7 +7,6 @@ import java.io.File;
import java.io.FileNotFoundException;
public class StartModel {
//TODO megoldás a gomb listener-ekre
private StartWindow startFrame;
private JFileChooser fileChooser;
private GameModel game;
......@@ -16,7 +15,6 @@ public class StartModel {
private final int defaultWidth = 15;
public StartModel() {
//startFrame = new StartWindow(this); // TODO törölheő?
fileChooser = new JFileChooser();
FileFilter filter = new FileNameExtensionFilter("JSON File (.json)", "json");
fileChooser.setFileFilter(filter);
......@@ -35,7 +33,6 @@ public class StartModel {
startFrame.setTextFieldMessage(String.format("%s betöltve (%d x %d)",
selected.getName(), board.getHeight(), board.getWidth()));
} catch (FileNotFoundException e) {
board = null; //TODO Kell-e?
e.printStackTrace();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment