Une seule instance de la fenetre setting
This commit is contained in:
parent
1d77351631
commit
5923875b44
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -710,7 +710,8 @@ public class create extends JFrame {
|
||||
|
||||
@Override public void actionPerformed( ActionEvent e ) {
|
||||
if(commandes.sujet.getNomElt().equals("fichier")) {
|
||||
new setting();
|
||||
// new setting();
|
||||
setting.getInstance();
|
||||
|
||||
}
|
||||
System.out.println( "ouvre la fenêtre setting" );
|
||||
|
@ -33,7 +33,7 @@ import java.awt.event.ActionEvent;
|
||||
import java.awt.GridLayout;
|
||||
import java.awt.Color;
|
||||
|
||||
public class setting extends JFrame {
|
||||
public final class setting extends JFrame {
|
||||
|
||||
/**
|
||||
*
|
||||
@ -61,6 +61,8 @@ public class setting extends JFrame {
|
||||
private JTextField textFieldTestCouleur;
|
||||
private JButton btnExtraire;
|
||||
|
||||
private static setting instance;
|
||||
|
||||
// Bouton couleur de test
|
||||
JButton btnCouleurInitTest;
|
||||
JButton btnRougeMax;
|
||||
@ -789,6 +791,15 @@ public class setting extends JFrame {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public static setting getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new setting();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* vérification des valeurs saisies dans la fenêtre setting.
|
||||
* @return
|
||||
|
Loading…
x
Reference in New Issue
Block a user