atlantafx icon indicating copy to clipboard operation
atlantafx copied to clipboard

Editable ComboBox renders non default states incorrectly

Open PavelTurk opened this issue 9 months ago • 0 comments

This is code:

public class JavaFxTest7 extends Application {

    @Override
    public void start(Stage stage) {
        Application.setUserAgentStylesheet(new Dracula().getUserAgentStylesheet());
        var comboBox = new ComboBox<String>();
        comboBox.setEditable(true);
        comboBox.setItems(FXCollections.observableArrayList(List.of("first", "second")));
        comboBox.pseudoClassStateChanged(Styles.STATE_DANGER, true);
        Scene scene = new Scene(new VBox(comboBox), 400, 200);
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}

And this is result:

Screenshot from 2024-05-17 15-34-29

PavelTurk avatar May 17 '24 12:05 PavelTurk