本文整理汇总了Java中com.jfoenix.controls.JFXPasswordField类的典型用法代码示例。如果您正苦于以下问题:Java JFXPasswordField类的具体用法?Java JFXPasswordField怎么用?Java JFXPasswordField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JFXPasswordField类属于com.jfoenix.controls包,在下文中一共展示了JFXPasswordField类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: build
import com.jfoenix.controls.JFXPasswordField; //导入依赖的package包/类
@Override
public void build(GridPane pane) {
int row = 0;
Label databaseHostLabel = new Label("Host");
databaseHostField = new JFXTextField();
databaseHostField.setPromptText("example.com");
GridPane.setConstraints(databaseHostLabel, 1, ++row);
GridPane.setConstraints(databaseHostField, 2, row);
Label databasePortLabel = new Label("Port");
databasePortField = new JFXTextField();
databasePortField.setPromptText("3306");
GridPane.setConstraints(databasePortLabel, 1, ++row);
GridPane.setConstraints(databasePortField, 2, row);
Label databaseLabel = new Label("Database");
databaseField = new JFXTextField();
GridPane.setConstraints(databaseLabel, 1, ++row);
GridPane.setConstraints(databaseField, 2, row);
Label usernameLabel = new Label("Username");
usernameField = new JFXTextField();
usernameField.setPromptText("My Awesome Username");
GridPane.setConstraints(usernameLabel, 1, ++row);
GridPane.setConstraints(usernameField, 2, row);
Label passwordLabel = new Label("Password");
passwordField = new JFXPasswordField();
passwordField.setPromptText("My Secret Password");
GridPane.setConstraints(passwordLabel, 1, ++row);
GridPane.setConstraints(passwordField, 2, row);
pane.getChildren().addAll(databaseHostLabel, databaseHostField, databasePortLabel, databasePortField,
databaseLabel, databaseField, usernameLabel, usernameField, passwordLabel, passwordField);
}
开发者ID:MakerTim,项目名称:LuckPermsUI,代码行数:36,代码来源:Login.java
示例2: getPassword
import com.jfoenix.controls.JFXPasswordField; //导入依赖的package包/类
public JFXPasswordField getPassword() {
return password;
}
开发者ID:badarshahzad,项目名称:Jfx-Browser,代码行数:4,代码来源:LoginController.java
示例3: setPassword
import com.jfoenix.controls.JFXPasswordField; //导入依赖的package包/类
public void setPassword(JFXPasswordField password) {
this.password = password;
}
开发者ID:badarshahzad,项目名称:Jfx-Browser,代码行数:4,代码来源:LoginController.java
示例4: setPass
import com.jfoenix.controls.JFXPasswordField; //导入依赖的package包/类
public void setPass(JFXPasswordField pass) {
this.password = pass;
}
开发者ID:badarshahzad,项目名称:Jfx-Browser,代码行数:4,代码来源:SignUpController.java
注:本文中的com.jfoenix.controls.JFXPasswordField类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论