ajout du trie
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import javax.swing.*;
|
||||
|
||||
public class ChoixRang extends JComboBox<String> {
|
||||
|
||||
public ChoixRang(){
|
||||
super(new String[]{"Tout", "Rang 1", "Rang 2", "Rang 3","Rang 4", "Rang 5"});
|
||||
this.setSelectedItem("Tout");
|
||||
this.addActionListener(this);
|
||||
}
|
||||
|
||||
public void tirage(Main main){
|
||||
|
||||
main.setTrie(this.getSelectedIndex());
|
||||
main.maj();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user