SHARE
TWEET

Untitled

a guest Nov 15th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package gui;
  2.  
  3. import application.model.Hotel;
  4. import application.model.HotelAddOn;
  5. import javafx.geometry.Insets;
  6. import javafx.scene.control.Button;
  7. import javafx.scene.control.Label;
  8. import javafx.scene.control.ListView;
  9. import javafx.scene.layout.GridPane;
  10. import javafx.scene.layout.HBox;
  11.  
  12. public class Hotelwindow extends GridPane {
  13.  
  14.     private Label LblHotelList = new Label("HotelListe");
  15.     private Label LblHotelAddOns = new Label("Hotel Tilvagsmuligheder");
  16.  
  17.     private ListView<Hotel> LWHotelListe = new ListView<>();
  18.     private ListView<HotelAddOn> LWHoteladdOns = new ListView<HotelAddOn>();
  19.  
  20.     private Button btnmakeHotel = new Button("oprat");
  21.     private Button btndeliteHotel = new Button("slet");
  22.     private Button btndeliteHotelAddOn = new Button("slet");
  23.     private Button btnAddHotelAddon = new Button("opret");
  24.     private HBox Hbox1 = new HBox(20);
  25.     private HBox Hbox2 = new HBox(20);
  26.  
  27.     public Hotelwindow() {
  28.         this.setPadding(new Insets(20));
  29.         this.setHgap(20);
  30.         this.setVgap(20);
  31.         this.setGridLinesVisible(false);
  32.  
  33.         this.add(LblHotelAddOns, 2, 1);
  34.         this.add(LblHotelList, 1, 1);
  35.  
  36.         this.add(LWHoteladdOns, 2, 2, 1, 4);
  37.         this.add(LWHotelListe, 1, 2, 1, 4);
  38.  
  39.         Hbox1.getChildren().add(btnAddHotelAddon);
  40.         Hbox1.getChildren().add(btndeliteHotelAddOn);
  41.         Hbox2.getChildren().add(btnmakeHotel);
  42.         Hbox2.getChildren().add(btndeliteHotel);
  43.  
  44.         this.add(Hbox1, 1, 6);
  45.         this.add(Hbox2, 2, 6);
  46.  
  47.     }
  48. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top