本文整理汇总了Java中javafx.scene.control.TextField.setMinHeight方法的典型用法代码示例。如果您正苦于以下问题:Java TextField.setMinHeight方法的具体用法?Java TextField.setMinHeight怎么用?Java TextField.setMinHeight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.control.TextField
的用法示例。
在下文中一共展示了TextField.setMinHeight方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp.setId("loginviewbg");
list = new ListView<String>();
items = FXCollections.observableArrayList("Philippe Kr�ttli","Irina Deck","Javier Martinez Alvarez","Frithjof Hoppe");
list.setItems(items);
AllFields = new VBox(50);
AllFields.setAlignment(Pos.CENTER);
AllFields.setMaxWidth(300);
AllFields.setPadding(new Insets(20));
SearchUser = new HBox();
Bottom = new HBox();
txtUserName = new TextField();
txtUserName.setMinHeight(50);
txtUserName.setMinWidth(700);
txtUserName.setPromptText("Email-Adresse des Benutzers");
btnSearch = new AppButton("Suchen");
btnAdd = new AppButton("Hinzuf�gen");
back = new BackButton(getFXController(),"Zur�ck");
SearchUser.getChildren().addAll(txtUserName,btnSearch);
Bottom.getChildren().addAll(back,btnAdd);
AllFields.getChildren().addAll(SearchUser,list,Bottom);
bp.setLeft(AllFields);
//btnSearch.setOnAction(e -> getFXController().showView("userlist"));
return bp;
}
示例2: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp.setId("loginviewbg");
list = new ListView<String>();
items = FXCollections.observableArrayList("Philippe Kr�ttli","Irina Deck","Javier Martinez Alvarez","Frithjof Hoppe");
list.setItems(items);
AllFields = new VBox(50);
AllFields.setAlignment(Pos.CENTER);
AllFields.setMaxWidth(300);
AllFields.setPadding(new Insets(20));
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
Tab tabDerive = new Tab();
tabDerive.setText("Derive");
HBox hbox = new HBox();
hbox.setPadding(new Insets(20, 0, 0, 0));
hbox.setStyle("-fx-font: 24 'System Regular'");
hbox.getChildren().add(new Label(tabDerive.getText()));
hbox.setAlignment(Pos.CENTER);
tabDerive.setContent(hbox);
Tab tabTeamwork = new Tab();
tabTeamwork.setText("Teamwork");
HBox hbox2 = new HBox();
hbox2.setPadding(new Insets(20, 0, 0, 0));
hbox2.setStyle("-fx-font: 24 'System Regular'");
hbox2.getChildren().add(new Label(tabTeamwork.getText()));
hbox2.setAlignment(Pos.CENTER);
tabTeamwork.setContent(hbox2);
tabPane.getTabs().addAll(tabDerive, tabTeamwork);
tabPane.getSelectionModel().getSelectedItem().setStyle("-fx-background-color:#a3a4a8");
tabPane.setOnMouseClicked(e -> {
for(Tab actTab:tabPane.getTabs())
{
actTab.setStyle("-fx-background-color:#f0f0f0");
}
tabPane.getSelectionModel().getSelectedItem().setStyle("-fx-background-color:#a3a4a8");
if(tabPane.getSelectionModel().getSelectedIndex()== 0)
{
btnContinue.setOnAction(ev -> getFXController().showView("deriveserverdoorview"));
} else
{
btnContinue.setOnAction(ev -> getFXController().showView("teamworkserverdoorview"));
}
});
SearchDMO = new HBox();
Bottom = new HBox();
txtDMO = new TextField();
txtDMO.setMinHeight(50);
txtDMO.setMinWidth(700);
txtDMO.setPromptText("Email-Adresse des Benutzers");
btnSearch = new AppButton("Suchen");
btnContinue = new AppButton("Weiter zum DMO");
back = new BackButton(getFXController(),"Zur�ck");
SearchDMO.getChildren().addAll(txtDMO,btnSearch);
Bottom.getChildren().addAll(back, btnContinue);
AllFields.getChildren().addAll(SearchDMO,list,Bottom);
bp.setTop(tabPane);
bp.setCenter(AllFields);
bp.setBottom(Bottom);
return bp;
}
示例3: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(740);
btnCreate.setMinWidth(740);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("dmodoorview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
示例4: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("saveuploadstackonserverdialogview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
开发者ID:CoffeeCodeSwitzerland,项目名称:Lernkartei_2017,代码行数:60,代码来源:SaveDownloadstackOwnDMODoorSelectionView.java
示例5: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("savedownloaddooronserverdialogview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
示例6: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(740);
btnCreate.setMinWidth(740);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("lernenselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
示例7: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("doorsavepathselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
示例8: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("lernenselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}
示例9: constructContainer
import javafx.scene.control.TextField; //导入方法依赖的package包/类
@Override
public Parent constructContainer()
{
bp = new BorderPane();
bp.setId("userviewbg");
back = new BackButton(getFXController(),"Zur�ck");
tabPane = new TabPane();
tabPane.setTabClosingPolicy(TabClosingPolicy.UNAVAILABLE);
tabPane.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Tab>() {
@Override
public void changed(ObservableValue<? extends Tab> ov, Tab tabOld, Tab tabNew) {
refreshView();
}
});
Center = new VBox();
Search = new HBox();
Top = new VBox();
txtSearch = new TextField();
txtSearch.setPromptText("Suche nach Doors");
txtSearch.setMinWidth(740);
txtSearch.setMinHeight(50);;
btnSearch = new AppButton("Suchen");
btnCreate = new AppButton("++Erstellen++");
btnCreate.setMinWidth(590);
btnCreate.setOnAction(e -> getFXController().showView("createdoorview"));
StackShowList.setSpacing(20);
Center.setSpacing(20);
sMain = new ScrollPane();
sMain.setContent(Center);
Search.getChildren().addAll(txtSearch,btnSearch);
Center.getChildren().addAll(StackShowList,btnCreate);
back = new AppButton("Zur�ck");
back.setOnAction(e-> getFXController().showView("savedownloadstackowndmodoorselectionview"));
Bottom = new VBox();
Bottom.getChildren().addAll(back);
Top.getChildren().addAll(Search,tabPane);
bp.setTop(Top);
bp.setCenter(sMain);
bp.setBottom(Bottom);
getFXController().getModel("serverstack").registerView(this);
return bp;
}