épuration du code

This commit is contained in:
Bastien NOEL 2020-04-28 14:49:47 +02:00
parent 9e57f0edd6
commit 6fedf1c061
3 changed files with 6 additions and 19 deletions

View File

@ -7,7 +7,6 @@ import java.util.ResourceBundle;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
@ -28,11 +27,6 @@ public class Main extends Application {
}
public static void main(String[] args) {
String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; // lien vers la musique :
// https://www.youtube.com/watch?v=LBpKUIyOHdo
Musique musiqueObjet = new Musique();
//musiqueObjet.playMusique(filepath);
launch(args);
}
}

View File

@ -5,7 +5,6 @@ import java.io.File;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.JOptionPane;
public class Musique {

View File

@ -5,18 +5,10 @@ import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;
import javax.swing.JOptionPane;
import ihm.Musique;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ComboBox;
import javafx.scene.input.MouseEvent;
@ -73,13 +65,10 @@ public class ParametreController implements Initializable {
}
}
/*
* } catch (IOException e) { // TODO Auto-generated catch block
* e.printStackTrace(); }
*/
}
/*
* if(clair.isSelected()) { Pane root =
* FXMLLoader.load(getClass().getResource("ressources/parametre.fxml"));
@ -92,5 +81,10 @@ public class ParametreController implements Initializable {
* }
*/
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(3)attaquer.fxml"));
rootPane.getChildren().setAll(pane);
}
}