Advertisement
Guest User

AdminScreenController.java

a guest
Feb 18th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.20 KB | None | 0 0
  1. //AdminScreenController.java
  2. package hotelmanagementsystem;
  3.  
  4. import java.net.URL;
  5. import java.util.ResourceBundle;
  6. import javafx.fxml.FXML;
  7. import javafx.fxml.Initializable;
  8. import javafx.scene.input.DragEvent;
  9. import javafx.scene.input.MouseEvent;
  10. import javafx.scene.layout.Pane;
  11.  
  12. /**
  13.  * FXML Controller class
  14.  *
  15.  * @author medam
  16.  */
  17. public class AdminScreenController implements Initializable {
  18.  
  19.      @FXML
  20.     private Pane pane_2;
  21.     @FXML
  22.     private Pane pane_1;
  23.     @FXML
  24.     private Pane pane_3;
  25.     @FXML
  26.     private Pane pane_4;
  27.     @FXML
  28.     private Pane pane_5;
  29.    
  30.     /**
  31.      * Initializes the controller class.
  32.      */
  33.     @Override
  34.     public void initialize(URL url, ResourceBundle rb) {
  35.         // TODO
  36.     }    
  37.    
  38.    
  39.     private void mouse_exit_1(MouseEvent event) {
  40.     pane_1.setStyle("-fx-background-color: white; -fx-background-radius: 6px");
  41.     }
  42.  
  43.     private void mouse_hover_1(MouseEvent event) {
  44.         pane_1.setStyle("-fx-background-color: #377ce8; -fx-background-radius: 6px;");
  45.     }
  46.  
  47.     private void mouse_exit_2(MouseEvent event) {
  48.     pane_2.setStyle("-fx-background-color: white; -fx-background-radius: 6px");
  49.    
  50.     }
  51.  
  52.     private void mouse_hover_2(MouseEvent event) {
  53.     pane_2.setStyle("-fx-background-color: #377ce8; -fx-background-radius: 6px;");
  54.     }
  55.    
  56.     private void mouse_exit_3(MouseEvent event) {
  57.     pane_3.setStyle("-fx-background-color: white; -fx-background-radius: 6px");
  58.    
  59.     }
  60.  
  61.     private void mouse_hover_3(MouseEvent event) {
  62.     pane_3.setStyle("-fx-background-color: #377ce8; -fx-background-radius: 6px;");
  63.     }
  64.  
  65.     private void mouse_exit_4(MouseEvent event) {
  66.     pane_4.setStyle("-fx-background-color: white; -fx-background-radius: 6px");
  67.    
  68.     }
  69.  
  70.     private void mouse_hover_4(MouseEvent event) {
  71.     pane_4.setStyle("-fx-background-color: #377ce8; -fx-background-radius: 6px;");
  72.     }
  73.  
  74.     private void mouse_exit_5(MouseEvent event) {
  75.     pane_5.setStyle("-fx-background-color: white; -fx-background-radius: 6px");
  76.    
  77.     }
  78.  
  79.     private void mouse_hover_5(MouseEvent event) {
  80.     pane_5.setStyle("-fx-background-color: #377ce8; -fx-background-radius: 6px;");
  81.     }  
  82.  
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement