Refine search
layout.setStyle("-fx-padding: 10;"); layout.getChildren().addAll(configure, update); stage.setScene(new Scene(layout)); stage.show(); .when(node.hoverProperty()) .then( new SimpleStringProperty(HOVERED_BUTTON_STYLE) new SimpleStringProperty(STANDARD_BUTTON_STYLE)
private TableView<Person> table = new TableView<Person>(); private final ObservableList<Person> data = FXCollections.observableArrayList( VBox.setVgrow(table, Priority.ALWAYS); stage.setScene(new Scene(vbox)); stage.show(); this.firstName = new SimpleStringProperty(fName); this.lastName = new SimpleStringProperty(lName); this.email = new SimpleStringProperty(email); this.likes = new SimpleStringProperty(likes);
TableView<String[]> tv = new TableView<String[]>(); final int columnCount = rs.getMetaData().getColumnCount(); for(int i =1; i <= columnCount; i++){ public ObservableValue<String> call(CellDataFeatures<String[], String> param) { return new SimpleStringProperty(param.getValue()[k]);
final StringProperty passwordProperty = new SimpleStringProperty(); @Override public void init() { final CountDownLatch latch = new CountDownLatch(1); layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 20px;"); layout.getChildren().setAll(welcomeMessage); stage.setScene(new Scene(layout)); stage.show(); layout.getChildren().setAll(textField, submitButton); dialog.setScene(new Scene(layout)); dialog.showAndWait();
private TableView<Person> table = new TableView<Person>(); private final ObservableList<Person> data = FXCollections.observableArrayList(); private void initData() { vbox.getChildren().addAll(label, table, setEmailButton, removeRowButton, resetButton); stage.setScene(new Scene(new Group(vbox))); stage.show(); this.firstName = new SimpleStringProperty(fName); this.lastName = new SimpleStringProperty(lName); this.email = new SimpleStringProperty(email);
stage.setScene(new Scene(messages, 600, 650)); stage.show(); private StringProperty url = new SimpleStringProperty(this, "url"); public final void setUrl(String value) { url.set(value); } public final String getUrl() { return url.get(); }
private TableView<foodTable> table = new TableView<foodTable>(); private final ObservableList<foodTable> data = FXCollections.observableArrayList(); this.FoodName = new SimpleStringProperty(lName); this.Quantity = new SimpleStringProperty(email); this.Price = new SimpleStringProperty(Price);
final TableView<TableProps> table = new TableView<>(); pane.setTop(hBox); pane.setCenter(table); stage.setScene(new Scene(pane, 640, 480)); stage.show(); this.tool = new SimpleStringProperty(tool); this.chart = new SimpleStringProperty(chart);
primaryStage.setScene(scene); primaryStage.show(); private final StringProperty name = new SimpleStringProperty(); private final BooleanProperty on = new SimpleBooleanProperty();
SimpleStringProperty nameProperty = new SimpleStringProperty("name"); public MyItem(String name) { nameProperty.set(name); TableView<MyItem> t = new TableView<MyItem>(); TableColumn col = new TableColumn("Name Header"); col.setCellValueFactory(new PropertyValueFactory<MyItem, String>("name"));
final Person aPerson = new Person("Fred", false, false, "Much Ado About Nothing"); final Label currentObjectValue = new Label(aPerson.toString()); TableView<NamedProperty> table = new TableView(); table.setEditable(true); table.setItems(createNamedProperties(aPerson)); stage.setScene(scene); stage.show(); valueProperty = value; private StringProperty nameProperty = new SimpleStringProperty(); this.firstName = new SimpleStringProperty(firstName); this.married = new SimpleBooleanProperty(isMarried); this.hasChildren = new SimpleBooleanProperty(hasChildren); this.favoriteMovie = new SimpleStringProperty(favoriteMovie);
stage.setScene(new Scene(layout)); stage.show(); final StringProperty colorStringProperty = new SimpleStringProperty(); setColorStringFromColor(colorStringProperty, warningColor); warningColor.addListener(new ChangeListener<Color>() { final Button warningButton = new Button("Warning! Warning!"); warningButton.styleProperty().bind( new SimpleStringProperty("-fx-base: ") .concat(colorStringProperty) .concat(";")
TableView<Item> table = new TableView<>(); TableColumn<Item, String> itemColumn = new TableColumn<>("Item"); itemColumn.setCellValueFactory(cellData -> cellData.getValue().nameProperty()); private final StringProperty name = new SimpleStringProperty(); private final LongProperty value = new SimpleLongProperty();
return new SimpleStringProperty(p.getValue().getKey()); public ObservableValue<String> call(TableColumn.CellDataFeatures<Map.Entry<String, String>, String> p) { return new SimpleStringProperty(p.getValue().getValue()); final TableView<Map.Entry<String,String>> table = new TableView<>(items); stage.setScene(scene); stage.show();
tableColumn.setCellValueFactory(cellData -> { return new SimpleStringProperty(cellData.getValue()); BorderPane root = new BorderPane(tableView); Scene scene = new Scene(root, 200, 100); stage.setScene(scene); stage.show();
myName = new SimpleStringProperty(name); myCheck = new SimpleBooleanProperty(checked); members.add(new Member("fritz", false)); TableView<Member> table = new TableView<Member>(); table.prefHeightProperty().bind(box.heightProperty()); table.setItems(members);
return new SimpleStringProperty(p.getValue().getKey()); public ObservableValue<String> call(TableColumn.CellDataFeatures<Map.Entry<String, String>, String> p) { return new SimpleStringProperty(p.getValue().getValue()); final TableView<Map.Entry<String,String>> table = new TableView<>(items); stage.setScene(scene); stage.show();
col.setCellValueFactory(new Callback<CellDataFeatures<ObservableList,String>,ObservableValue<String>>(){ public ObservableValue<String> call(CellDataFeatures<ObservableList, String> param) { return new SimpleStringProperty(param.getValue().get(j).toString()); stage.setScene(scene); stage.show();
TableView<Person> table = new TableView<>(); private final StringProperty firstName = new SimpleStringProperty(); private final StringProperty lastName = new SimpleStringProperty();
public void start(Stage stage) throws Exception { ObservableList<Person> data = FXCollections.observableArrayList(); TableView<Person> tv = new TableView<>(data); stage.setScene(new Scene(tv,500,200)); stage.show(); TableColumn<Person, Integer> id = new TableColumn<>("id"); id.setCellValueFactory((p) -> p.getValue().id.asObject()); this.name = new SimpleStringProperty(name); this.epoch = new SimpleObjectProperty<>(epoch);