From e205874d4527d578515484f465fe2a072c06f8b4 Mon Sep 17 00:00:00 2001 From: fauvet Date: Tue, 18 Apr 2023 23:45:36 +0200 Subject: [PATCH] UPDATE 12 - Ajout GIT --- taille_su.java => ChoixEtTaille.java | 4 +- FenetreDefSize.java | 2 +- Makefile | 96 ++++++++++++++++++++++++++++ azert.java | 19 ------ 4 files changed, 99 insertions(+), 22 deletions(-) rename taille_su.java => ChoixEtTaille.java (84%) create mode 100644 Makefile delete mode 100644 azert.java diff --git a/taille_su.java b/ChoixEtTaille.java similarity index 84% rename from taille_su.java rename to ChoixEtTaille.java index c629d87..21564a3 100644 --- a/taille_su.java +++ b/ChoixEtTaille.java @@ -1,12 +1,12 @@ import javax.swing.*; import java.awt.event.*; -public class taille_su extends JFrame implements ActionListener { +public class ChoixEtTaille extends JFrame implements ActionListener { private JFrame cette_frame; private JTextField ce_tfield; private ButtonGroup ce_group; - public taille_su(JFrame une_frame, JTextField un_tfield, ButtonGroup group){ + public ChoixEtTaille(JFrame une_frame, JTextField un_tfield, ButtonGroup group){ this.cette_frame = une_frame; this.ce_tfield = un_tfield; this.ce_group = group; diff --git a/FenetreDefSize.java b/FenetreDefSize.java index c15a0b8..5b77d67 100644 --- a/FenetreDefSize.java +++ b/FenetreDefSize.java @@ -69,7 +69,7 @@ public class FenetreDefSize extends Fenetre{ ce_panneau2.add(ce_panneau4); /*----------------- event -----------------*/ - taille_su b_taille = new taille_su(this.fenetre, ce_champ, group); + ChoixEtTaille b_taille = new ChoixEtTaille(this.fenetre, ce_champ, group); ce_boutton.addActionListener(b_taille); /*----------------- reste -----------------*/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7bb99cb --- /dev/null +++ b/Makefile @@ -0,0 +1,96 @@ +### VARIABLES ### + +JC = javac +JCFLAGS = -encoding UTF-8 -implicit:none + +JVM = java +JVMFLAGS = + +### REGLES ESSENTIELLES ### + +Start.class : Start.java Fenetre.class FenetreInit.class + ${JC} ${JCFLAGS} Start.java + +Fenetre.class : Fenetre.java FenetreInit.class + ${JC} ${JCFLAGS} Fenetre.java + +FenetreInit.class : FenetreInit.java creer.class importer.class + ${JC} ${JCFLAGS} FenetreInit.java + +### ======================================================================== + +importer.class : importer.java Lecture.class FenetreImpGrille.class + ${JC} ${JCFLAGS} importer.java + +Lecture.class : Lecture.java outils.class + ${JC} ${JCFLAGS} Lecture.java + +outils.class : outils.java + ${JC} ${JCFLAGS} outils.java + +FenetreImpGrille.class : FenetreImpGrille.java + ${JC} ${JCFLAGS} FenetreImpGrille.java + +### ======================================================================== + +creer.class : creer.java FenetreDefSize.class + ${JC} ${JCFLAGS} creer.java + +FenetreDefSize.class : FenetreDefSize.java ChoixEtTaille.class + ${JC} ${JCFLAGS} FenetreDefSize.java + +ChoixEtTaille.class : ChoixEtTaille.java FenetreRndmGrille.class FenetreVideGrille.class + ${JC} ${JCFLAGS} ChoixEtTaille.java + +# == +FenetreRndmGrille.class : FenetreRndmGrille.java OptionsFRG.class ModificationsFRG.class + ${JC} ${JCFLAGS} FenetreRndmGrille.java + +ModificationsFRG.class : ModificationsFRG.java + ${JC} ${JCFLAGS} ModificationsFRG.java + +OptionsFRG.class : OptionsFRG.java OptionsBoutonsFRG.class + ${JC} ${JCFLAGS} OptionsFRG.java + +OptionsBoutonsFRG.class : OptionsBoutonsFRG.java ExporterFRG.class + ${JC} ${JCFLAGS} OptionsBoutonsFRG.java + +ExporterFRG.class : ExporterFRG.java Enregistrer.class + ${JC} ${JCFLAGS} ExporterFRG.java +# == +FenetreVideGrille.class : FenetreVideGrille.java OptionsFVG.class ModificationsFVG.class + ${JC} ${JCFLAGS} FenetreVideGrille.java + +ModificationsFVG.class : ModificationsFVG.java + ${JC} ${JCFLAGS} ModificationsFVG.java + +OptionsFVG.class : OptionsFVG.java FenetreVideGrille.class + ${JC} ${JCFLAGS} OptionsFVG.java + +OptionsBoutonsFVG.class : OptionsBoutonsFVG.java ExporterFVG.class + ${JC} ${JCFLAGS} OptionsBoutonsFVG.java + +ExporterFVG.class : ExporterFVG.java Enregistrer.class + ${JC} ${JCFLAGS} ExporterFVG.java + +### ========================================================================= + +Enregistrer.class : Enregistrer.java + ${JC} ${JCFLAGS} Enregistrer.java + + +### REGLES OPTIONNELLES ### + +run : Start.class + ${JVM} ${JVMFLAGS} Start + +clean : + -rm -f *.class + +mrproper : clean Start.class + +### BUTS FACTICES ### + +.PHONY : run clean mrproper + +### FIN ### \ No newline at end of file diff --git a/azert.java b/azert.java deleted file mode 100644 index 7b1c526..0000000 --- a/azert.java +++ /dev/null @@ -1,19 +0,0 @@ -public class azert { - public static void main(String[] Args){ - int i = 6, j, compteur=0; - int[] tab = new int[8]; - int[] copie = new int[8]; - for(j=0; j<8; j++){ - tab[j] = i&1; - i = i >> 1; - /*System.out.println(j+" bits reverse = "+tab[j]);*/ - } - for(j=7; j>0; j--){ - copie[j]=tab[compteur]; - compteur++; - } - for(j=0; j<8; j++){ - System.out.println(j+" bits reverse = "+copie[j]); - } - } -} \ No newline at end of file