From 7d52d0a273022a85604c636a582904ce71be30bd Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Fri, 20 Jan 2023 13:48:04 +0100 Subject: [PATCH] refactor: remove comment --- src/main/java/src/MainFrame.java | 123 ------------------------------- 1 file changed, 123 deletions(-) diff --git a/src/main/java/src/MainFrame.java b/src/main/java/src/MainFrame.java index 9fa6fbc..44b0884 100644 --- a/src/main/java/src/MainFrame.java +++ b/src/main/java/src/MainFrame.java @@ -30,23 +30,11 @@ public class MainFrame extends JFrame { header.setBounds(125, 5, 250, 50); rootPanel.add(header); -// JLabel h = new JLabel("", SwingConstants.CENTER); -// h.setText("Sudoku"); -// h.setVisible(true); -// h.setBounds(250, 25, 200, 150); -// h.setBackground(Color.GREEN); -// h.setForeground(Color.BLACK); -// h.setFont(new Font("Times new Roman", Font.BOLD, 10)); -// rootPanel.add(h); GameField gameField = new GameField(360); gameField.setBounds(70, 50, 360, 360); rootPanel.add(gameField); -// JPanel numberPanel = new JPanel(); -// numberPanel.setVisible(true); -// numberPanel.setBounds(100, 450, 300, 30); -// rootPanel.add(numberPanel); int j = 0; @@ -115,117 +103,6 @@ public class MainFrame extends JFrame { -// for (int i = 1, j=0; i < 10; i++) { -// JLabel numberi= new JLabel(); -// numberi.setText(""+i); -// numberi.setBounds(5+j, 5, 20, 20); -// numberPanel.setLayout(null); -// numberi.addMouseListener(new MouseListener() { -// @Override -// public void mouseClicked(MouseEvent e) { -// -// } -// -// @Override -// public void mousePressed(MouseEvent e) { -// Field activePanel = gameField.getActivePanel(); -// System.out.println(); -// activePanel.setValue(2); -// -// } -// -// @Override -// public void mouseReleased(MouseEvent e) { -// -// } -// -// @Override -// public void mouseEntered(MouseEvent e) { -// -// } -// -// @Override -// public void mouseExited(MouseEvent e) { -// -// } -// }); -// -// JPanel ni = new JPanel(); -// ni.setBounds(5+j, 5, 20, 20); -// ni.setVisible(true); -// ni.setBackground(Color.pink); -// ni.add(numberi); -// numberPanel.add(ni); -// j=j+25; -// ni.addMouseListener(new MouseListener() { -// @Override -// public void mouseClicked(MouseEvent e) { -// -// } -// -// @Override -// public void mousePressed(MouseEvent e) { -// gameField.getActivePanel().setValue(1); -// } -// -// @Override -// public void mouseReleased(MouseEvent e) { -// -// } -// -// @Override -// public void mouseEntered(MouseEvent e) { -// -// } -// -// @Override -// public void mouseExited(MouseEvent e) { -// -// } -// }); -// } - -// JLabel number10= new JLabel(); -// number10.setText(" "); -// number10.setBounds(250, 5, 20, 20); -// numberPanel.setLayout(null); -// number10.addMouseListener(new MouseListener() { -// @Override -// public void mouseClicked(MouseEvent e) { -// -// } -// -// @Override -// public void mousePressed(MouseEvent e) { -// gameField.getActiveLabel().setVisible(true); -// gameField.getActiveLabel().setText("10"); -// -// } -// -// @Override -// public void mouseReleased(MouseEvent e) { -// -// } -// -// @Override -// public void mouseEntered(MouseEvent e) { -// -// } -// -// @Override -// public void mouseExited(MouseEvent e) { -// -// } -// }); -// -// JPanel n10 = new JPanel(); -// n10.setBounds(250, 5, 20, 20); -// n10.setVisible(true); -// n10.setBackground(Color.pink); -// n10.add(number10); -// numberPanel.add(n10); - - JButton back = new JButton(); back.setVisible(true);