From a9ec8cc4f8a26922d57c3b2efe0d48f904fb196d Mon Sep 17 00:00:00 2001 From: besson Date: Wed, 11 Jan 2023 13:53:22 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/JsonInspector/?= =?UTF-8?q?Line.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/JsonInspector/Line.java | 64 +++++++++++++++++++------------------ 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/src/JsonInspector/Line.java b/src/JsonInspector/Line.java index a226177..abf5886 100644 --- a/src/JsonInspector/Line.java +++ b/src/JsonInspector/Line.java @@ -1,31 +1,33 @@ -import java.awt.*; - -public class Line extends MyJPanel { - //Le nœud qui est représenté par cette objet Line - private Node node; - - public Line(Node node) { - super(); - this.node = node; - } - - public Line(Node node, String str) { - super(); - this.add(new MyJLabel(str)); - this.node = node; - } - - public Line(Node node, String str, Color color) { - super(); - this.add(new MyJLabel(str, color)); - this.node = node; - } - - public void add(String string) { - this.add(new MyJLabel(string)); - } - - public void add(String string, Color color) { - this.add(new MyJLabel(string, color)); - } -} +package JsonInspector; + +import java.awt.*; + +public class Line extends MyJPanel { + //Le nœud qui est représenté par cette objet Line + private Node node; + + public Line(Node node) { + super(); + this.node = node; + } + + public Line(Node node, String str) { + super(); + this.add(new MyJLabel(str)); + this.node = node; + } + + public Line(Node node, String str, Color color) { + super(); + this.add(new MyJLabel(str, color)); + this.node = node; + } + + public void add(String string) { + this.add(new MyJLabel(string)); + } + + public void add(String string, Color color) { + this.add(new MyJLabel(string, color)); + } +}