UPDATE 12 - Ajout GIT

This commit is contained in:
fauvet 2023-04-18 23:45:36 +02:00
parent 9db385a94a
commit e205874d45
4 changed files with 99 additions and 22 deletions

View File

@ -1,12 +1,12 @@
import javax.swing.*; import javax.swing.*;
import java.awt.event.*; import java.awt.event.*;
public class taille_su extends JFrame implements ActionListener { public class ChoixEtTaille extends JFrame implements ActionListener {
private JFrame cette_frame; private JFrame cette_frame;
private JTextField ce_tfield; private JTextField ce_tfield;
private ButtonGroup ce_group; 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.cette_frame = une_frame;
this.ce_tfield = un_tfield; this.ce_tfield = un_tfield;
this.ce_group = group; this.ce_group = group;

View File

@ -69,7 +69,7 @@ public class FenetreDefSize extends Fenetre{
ce_panneau2.add(ce_panneau4); ce_panneau2.add(ce_panneau4);
/*----------------- event -----------------*/ /*----------------- 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); ce_boutton.addActionListener(b_taille);
/*----------------- reste -----------------*/ /*----------------- reste -----------------*/

96
Makefile Normal file
View File

@ -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 ###

View File

@ -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]);
}
}
}