Advertisement
Spirit13300

ClassementController.java

Jun 7th, 2018
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package fr.univ_amu.iut;
  2.  
  3. import javafx.event.ActionEvent;
  4. import javafx.event.EventHandler;
  5. import javafx.fxml.Initializable;
  6. import javafx.scene.control.*;
  7. import javafx.fxml.FXML;
  8. import javafx.fxml.FXMLLoader;
  9. import javafx.scene.layout.GridPane;
  10. import java.io.IOException;
  11. import java.net.URL;
  12. import java.util.ResourceBundle;
  13.  
  14. public class ClassementController extends GridPane implements Initializable {
  15.     @FXML
  16.     private TableView<Person> table;
  17.     @FXML
  18.     private TableColumn rangCol;
  19.     private TableColumn pseudoCol;
  20.     private TableColumn nomCol;
  21.     private TableColumn scoreCol;
  22.  
  23.     @FXML
  24.     private Label classement;
  25.  
  26.     public ClassementController() {
  27.         FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ClassementView.fxml"));
  28.         fxmlLoader.setRoot(this);
  29.         fxmlLoader.setController(this);
  30.         try {
  31.             fxmlLoader.load();
  32.         } catch (IOException exception) {
  33.             throw new RuntimeException(exception);
  34.         }
  35.     }
  36.  
  37.     @Override
  38.     public void initialize(URL location, ResourceBundle resources) {
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement