Package javafx.scene.layout

Examples of javafx.scene.layout.GridPane


   
    return gp;
  }

  private Node createSheduleSearchPanel() {
    GridPane gp = new GridPane();
    gp.setHgap(10);
    gp.setVgap(10);
   
    Label lshed = new Label("Shedule search");
    Label lfrom = new Label("Time from");
    TextField tffrom = new TextField();
    tffrom.setPromptText("hh:mm");
    tffrom.addEventFilter(KeyEvent.KEY_TYPED, new TimeFilter());
    Label lto = new Label("Time to");
    TextField tfto = new TextField();
    tfto.addEventFilter(KeyEvent.KEY_TYPED, new TimeFilter());
    tffrom.setPromptText("hh:mm");
    Button btnsearch = new Button("Search");
 
    gp.add(lshed, 0, 0);
    gp.add(lfrom, 0, 1);
    gp.add(tffrom, 1, 1);
    gp.add(lto, 0, 2);
    gp.add(tfto, 1, 2);
    gp.add(btnsearch, 0, 3);
   
    return gp;
  }
View Full Code Here


   
    return gp;
  }
 
  private Node createAddTaskPanel() {
    GridPane gp = new GridPane();
    gp.setHgap(10);
    gp.setVgap(10);
    return gp;
  }
View Full Code Here

    gp.setVgap(10);
    return gp;
  }
 
  private Node createRemoveTaskPanel() {
    GridPane gp = new GridPane();
    gp.setHgap(10);
    gp.setVgap(10);
    return gp;
  }
View Full Code Here

  public void close() throws SQLException {
    connect.close();
  }

  private GridPane createHistorySearchPanel() {
    GridPane gp = new GridPane();
    gp.setHgap(10);
    gp.setVgap(10);
   
    Label lhistory = new Label("History");
    Label lfrom = new Label("From");
    DatePicker dpFrom = new DatePicker();
    Label lto = new Label("To");
    DatePicker dpTo = new DatePicker();
    Button btnsearch = new Button("Search");
    List<Object> args = new LinkedList<Object>();
    args.add(dpFrom); args.add(dpTo);
    btnsearch.setOnAction(new HistorySearchEventHandler(results, connect, args));
   
    gp.add(lhistory, 0, 0);
    gp.add(lfrom, 0, 1);
    gp.add(dpFrom, 1, 1);
    gp.add(lto, 0, 2);
    gp.add(dpTo, 1, 2);
    gp.add(btnsearch, 0, 3);
   
    return gp;
  }
View Full Code Here

   
    return gp;
  }
 
  private GridPane createIncomeOutcomePanel() {
    GridPane gp = new GridPane();
    gp.setHgap(10);
    gp.setVgap(10);
    Label lincome = new Label("Income/Outcome");
    Label lFrom = new Label("From");
    DatePicker dpFrom = new DatePicker();
   
    Label lTo = new Label("To");
    DatePicker dpTo = new DatePicker();
    List<Object> args = new LinkedList<Object>();
    args.add(dpFrom); args.add(dpTo);
   
    Button btnCalc = new Button("Calculate");
    btnCalc.setOnAction(new IncomeCalcEventHandler(results, connect, args));
   
    gp.add(lincome, 0, 0);
    gp.add(lFrom, 0, 1);
    gp.add(dpFrom, 1, 1);
    gp.add(lTo, 0, 2);
    gp.add(dpTo, 1, 2);
    gp.add(btnCalc, 0, 3);
    return gp;
  }
View Full Code Here

   
    Label lwelcome = new Label("Welcome, " + login + "!");
   
    rsearch.create(args);
   
    GridPane rbook = new GridPane();
    rbook.setHgap(10);
    rbook.setVgap(10);
    rbook.setPadding(new Insets(50, 0, 0, 0));
    Label lbook = new Label("Booking");
    Label lroomnum = new Label("Room number: ");
    TextField tfroomnum = new TextField();
    tfroomnum.addEventHandler(KeyEvent.KEY_TYPED, new NumFilter());
    Button btnbook = new Button("Book!");
    btnbook.setDisable(true);
    btnbook.setOnAction(new BookEventHandler(results, new TextField(""+id), tfroomnum));
    rbook.add(lbook, 0, 0);
    rbook.add(lroomnum, 0, 1);
    rbook.add(tfroomnum, 1, 1);
    rbook.add(btnbook, 0, 2);
   
    this.getChildren().addAll(lwelcome, rsearch, rbook);
  }
View Full Code Here

    Label llang = new Label("Language statistics");
    Label lfrom = new Label("From");
    DatePicker dpfrom = new DatePicker();
    Label lto = new Label("To");
    DatePicker dpto = new DatePicker();
    GridPane gp = new GridPane();
    gp.setVgap(10);
    gp.setHgap(10);
    gp.add(lfrom, 0, 0);
    gp.add(dpfrom, 1, 0);
    gp.add(lto, 0, 1);
    gp.add(dpto, 1, 1);
    Button btngenerate1 = new Button("Generate report");
    btngenerate1.setOnAction(new LanguageStatEventHandler(connect));

    Label lcountry = new Label("Country statistics");
    Label lfrom1 = new Label("From");
    DatePicker dpfrom1 = new DatePicker();
    Label lto1 = new Label("To");
    DatePicker dpto1 = new DatePicker();
    GridPane gp1 = new GridPane();
    gp1.setVgap(10);
    gp1.setHgap(10);
    gp1.add(lfrom1, 0, 0);
    gp1.add(dpfrom1, 1, 0);
    gp1.add(lto1, 0, 1);
    gp1.add(dpto1, 1, 1);
    Button btngenerate2 = new Button("Generate report");
    btngenerate2.setOnAction(new CountryStatEventHandler(connect));

    box.getChildren().addAll(lbusy, btngenerate, llang, gp, btngenerate1,
        lcountry, gp1, btngenerate2);
View Full Code Here

    }
  }
  private Credentials credentials;
 
  private void showCustomDialog(Stage stage) {
    GridPane grid = new GridPane();
    grid.setHgap(10);
      grid.setVgap(10);
      grid.setPadding(new Insets(0, 10, 0, 10));
    final TextField username = new TextField(); username.setPromptText("Username");
    final PasswordField password = new PasswordField(); password.setPromptText("Password");

    grid.add(new Label("Username:"), 0, 0);
    grid.add(username, 1, 0);
    grid.add(new Label("Password:"), 0, 1);
    grid.add(password, 1, 1);
    Callback<Void, Void> myCallback = new Callback<Void, Void>() {
      @Override
      public Void call(Void param) {
        credentials = new Credentials(username.getText(), password.getText());
        return null;
View Full Code Here

   */
  @SuppressWarnings({ "unchecked" })
  public void takeAtout(String lien) {
    Insets insets = new Insets(5, 0, 5, 0);
    if (_gridCenter == null)
      _gridCenter = new GridPane();
    _gridCenter.getChildren().clear();
    _gridCenter.setAlignment(Pos.CENTER);
    _firstTake = true;

    ImageView image = new ImageView(new Image(lien));
View Full Code Here

      break;
    }

    _takeButton.disableProperty().setValue(true);

    GridPane grid = new GridPane();
    grid.add(_carreau, 0, 0);
    grid.add(_coeur, 1, 0);
    grid.add(_pique, 2, 0);
    grid.add(_trefle, 3, 0);

    _gridCenter.add(grid, 0, 1);
  }
View Full Code Here

TOP

Related Classes of javafx.scene.layout.GridPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.