Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigDecimalField focus problem #129

Open
rloschmann opened this issue Apr 29, 2021 · 1 comment
Open

BigDecimalField focus problem #129

rloschmann opened this issue Apr 29, 2021 · 1 comment

Comments

@rloschmann
Copy link

BigDecimalField focus have a problem that can be demonstrated as follow:

  1. Create a window containing at least 2 BigDecimalField controls.
  2. Click in the first BigDecimalField to give it focus.
  3. Make the window lose focus (click for example on the desktop).
  4. Click in the second BigDecimalField to give it focus (do not give focus to the window first).
  5. The focus will alternate indefinitely between the 2 BigDecimalField controls.

Here is a small program to execute:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import jfxtras.labs.scene.control.BigDecimalField;

public class BigDecimalFieldFocusBugDemo extends Application {

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

@Override
public void start(Stage primaryStage) {
	primaryStage.setTitle("Big Decimal Field Focus Bug Demo");
	primaryStage.setScene(new Scene(createControls()));
	primaryStage.show();
}

private VBox createControls() {
	return new VBox(new BigDecimalField(), new BigDecimalField());
}

}

@tbee
Copy link
Member

tbee commented Apr 29, 2021

I would like to point out that jfxtras-labs is a playground where developers can drop whatever experiment they are doing, in whatever state their code is. It only should not break the build. Usage of labs is at your own risk. So I'm not sure if the original developer is still supporting his code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants