commit 40dc71ab032c0c795f1a4190241d15c97923c765 Author: MatthisFauvet Date: Sun Jun 23 01:39:58 2024 +0200 original commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..6f29fee --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..756584f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/InfiniteGridMap.iml b/InfiniteGridMap.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/InfiniteGridMap.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/untitled/CustomListener.class b/out/production/untitled/CustomListener.class new file mode 100644 index 0000000..2eba875 Binary files /dev/null and b/out/production/untitled/CustomListener.class differ diff --git a/out/production/untitled/CustomPanel.class b/out/production/untitled/CustomPanel.class new file mode 100644 index 0000000..8d6ff1d Binary files /dev/null and b/out/production/untitled/CustomPanel.class differ diff --git a/out/production/untitled/Main.class b/out/production/untitled/Main.class new file mode 100644 index 0000000..98a645e Binary files /dev/null and b/out/production/untitled/Main.class differ diff --git a/out/production/untitled/View.class b/out/production/untitled/View.class new file mode 100644 index 0000000..534d03c Binary files /dev/null and b/out/production/untitled/View.class differ diff --git a/src/CustomController.java b/src/CustomController.java new file mode 100644 index 0000000..c94bbf6 --- /dev/null +++ b/src/CustomController.java @@ -0,0 +1,2 @@ +public class CustomController { +} diff --git a/src/CustomListener.java b/src/CustomListener.java new file mode 100644 index 0000000..3345d9f --- /dev/null +++ b/src/CustomListener.java @@ -0,0 +1,31 @@ +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; + +public class CustomListener implements MouseListener { + @Override + public void mouseClicked(MouseEvent e) { + System.out.println("x deb"+e.getX()); + System.out.println("y deb"+e.getY()); + } + + @Override + public void mousePressed(MouseEvent e) { + + } + + @Override + public void mouseReleased(MouseEvent e) { + System.out.println("x fin"+e.getX()); + System.out.println("y fin"+e.getY()); + } + + @Override + public void mouseEntered(MouseEvent e) { + + } + + @Override + public void mouseExited(MouseEvent e) { + + } +} diff --git a/src/CustomPanel.java b/src/CustomPanel.java new file mode 100644 index 0000000..b51e035 --- /dev/null +++ b/src/CustomPanel.java @@ -0,0 +1,25 @@ +import javax.swing.*; +import java.awt.*; + +public class CustomPanel extends JPanel { + + private int width = 1920; + private int height = 1080; + public CustomPanel() { + setBackground(Color.WHITE); + } + + @Override + public void paintComponent(Graphics g) { + super.paintComponent(g); + Graphics g2 = g.create(); + g2.setColor(Color.BLACK); + + for(int x=0; x + + + + + + + + + + \ No newline at end of file