-
Bug
-
Resolution: Fixed
-
P3
-
fx2.0
-
b32
jdk6
To reproduce run following code
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.PasswordField;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class PasswordBoxSample extends Application {
public static void main(String[] args) {
launch(args);
}
private Parent getContent() {
VBox list = new VBox();
Pane pane=new Pane();
PasswordField box = new PasswordField();
box.setPromptText("Enter password enter password");
box.setStyle("-fx-border-color: green; -fx-padding:10 5 30 15;");
box.setFocusTraversable(false);
pane.getChildren().add(box);
list.getChildren().addAll(pane);
return list;
}
public void start(Stage stage) {
stage.setX(100);
stage.setY(100);
stage.setWidth(300);
stage.setHeight(300);
Scene scene = new Scene(getContent());
stage.setScene(scene);
stage.setVisible(true);
}
}
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.PasswordField;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class PasswordBoxSample extends Application {
public static void main(String[] args) {
launch(args);
}
private Parent getContent() {
VBox list = new VBox();
Pane pane=new Pane();
PasswordField box = new PasswordField();
box.setPromptText("Enter password enter password");
box.setStyle("-fx-border-color: green; -fx-padding:10 5 30 15;");
box.setFocusTraversable(false);
pane.getChildren().add(box);
list.getChildren().addAll(pane);
return list;
}
public void start(Stage stage) {
stage.setX(100);
stage.setY(100);
stage.setWidth(300);
stage.setHeight(300);
Scene scene = new Scene(getContent());
stage.setScene(scene);
stage.setVisible(true);
}
}