Browse Source

DTSUD-57 Implemented the save menu item in the menubar

remotes/origin/develop
fdai6499 2 years ago
parent
commit
79a197d58f
  1. 4
      src/main/java/src/GameField.java
  2. 3
      src/main/java/src/MainFrame.java

4
src/main/java/src/GameField.java

@ -41,13 +41,13 @@ public class GameField extends JPanel {
int gapi = 0, gapj = 0;
for (int i = 0; i < nrOfFields; i++) {
for (int i = 0, addI = 1; i < nrOfFields; i++) {
gameField[i] = new JPanel[nrOfFields];
labelField[i] = new JLabel[nrOfFields];
noteField[i] = new Notes[nrOfFields];
for (int j = 0; j < nrOfFields; j++) {
for (int j = 0, addJ = 1; j < nrOfFields; j++) {
gameField[i][j] = new JPanel();
gameField[i][j].setBorder(new LineBorder(Color.BLACK, 2));

3
src/main/java/src/MainFrame.java

@ -135,13 +135,16 @@ public class MainFrame extends JFrame {
JMenu m_menu=new JMenu("Sudoku");
JMenu m_submenu=new JMenu("Neues Spiel");
JMenuItem menu_i7=new JMenuItem("Speichern");
JMenuItem menu_i1=new JMenuItem("Nochmal");
JMenuItem menu_i2=new JMenuItem("Tipp");
JMenuItem menu_i4=new JMenuItem("Einfach");
JMenuItem menu_i5=new JMenuItem("Mittel");
JMenuItem menu_i6=new JMenuItem("Schwer");
m_menu.add(menu_i1);
m_menu.add(menu_i2);
m_menu.add(menu_i7);
m_submenu.add(menu_i4);
m_submenu.add(menu_i5);
m_submenu.add(menu_i6);

Loading…
Cancel
Save