-
Notifications
You must be signed in to change notification settings - Fork 541
8247163: JFXPanel throws exception on click when no Scene is set #248
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
8247163: JFXPanel throws exception on click when no Scene is set #248
Conversation
|
👋 Welcome back fkirmaier! A progress list of the required criteria for merging this PR into |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks correct to me (I haven't tested it yet). I left a minor comment inline.
| // which doesn't have any side-effects when called multiple times. | ||
| int focusCause = AbstractEvents.FOCUSEVENT_ACTIVATED; | ||
| stagePeer.setFocused(true, focusCause); | ||
| if(stagePeer != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: space after the if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the space.
|
The fix and test both look good. Approved pending the minor format change (no need for a second reviewer). |
|
Great, I've added the requested minor format change! |
|
@FlorianKirmaier This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 8 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinrushforth) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate |
|
@FlorianKirmaier |
|
/sponsor |
|
@kevinrushforth @FlorianKirmaier The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit 1727dfa. |
Fixing exception when clicking on JFXPanel when no Scene is set.
quick test:
./gradlew -PFULL_TEST=true -PUSE_ROBOT=true :systemTests: test --tests *javafx.embed.swing.JFXPan* --infoIt's a regression from my previous PR: #25
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/248/head:pull/248$ git checkout pull/248