Skip to content

8235404: [macos] JOptionPane blocks drawing string on another component #20359

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

Closed
wants to merge 8 commits into from

Conversation

alisenchung
Copy link
Contributor

@alisenchung alisenchung commented Jul 26, 2024

Currently if you try to use graphics to draw a string on a frame using JOptionPane + JTextField with a listener as a prompt, the string will not draw. Adding a repaint after dialog.dispose in JOptionPane will cause the text to show after the dialog is closed.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8235404: [macos] JOptionPane blocks drawing string on another component (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20359/head:pull/20359
$ git checkout pull/20359

Update a local copy of the PR:
$ git checkout pull/20359
$ git pull https://git.openjdk.org/jdk.git pull/20359/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 20359

View PR using the GUI difftool:
$ git pr show -t 20359

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20359.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 26, 2024

👋 Welcome back achung! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@alisenchung alisenchung marked this pull request as draft July 26, 2024 16:53
@openjdk
Copy link

openjdk bot commented Jul 26, 2024

@alisenchung This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8235404: [macos] JOptionPane blocks drawing string on another component

Reviewed-by: honkar, dnguyen

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 668 new commits pushed to the master branch:

  • 22a3421: 8337786: Fix simple -Wzero-as-null-pointer-constant warnings in aarch64 code
  • ff634a9: 8337506: Disable "best-fit" mapping on Windows command line
  • 3f8b3e5: 8337887: [JVMCI] Clarify jdk.vm.ci.code.Architecture.getName javadoc
  • 53db937: 8337780: RISC-V: C2: Change C calling convention for sp to NS
  • ab509f1: 8337654: Relocate uncommon trap stub from SharedRuntime to OptoRuntime
  • 1348ece: 8332120: Potential compilation failure in istream.cpp:205 - loss of data on conversion
  • ef909bd: 8335121: Native memory leak when not recording any events
  • a117945: 8337344: Redundant javadoc at RasterPrinterJob.isCancelled
  • f9b8a22: 8337798: JFR: Remove jdk/jfr/api/consumer/recordingstream/TestOnEvent.java from ProblemList.txt
  • 958786b: 8332522: SwitchBootstraps::mappedEnumLookup constructs unused array
  • ... and 658 more: https://git.openjdk.org/jdk/compare/6238bc8da2abe7a1f0cdd98c0af01e9ba1869ec3...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Jul 26, 2024

@alisenchung The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the client client-libs-dev@openjdk.org label Jul 26, 2024
@kumarabhi006
Copy link
Contributor

Could you please add a test case to validate the fix ?

@alisenchung alisenchung marked this pull request as ready for review July 30, 2024 19:01
Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test requires clean-up there are couple of commented lines.
JBS issue does not seem to be linked, can you check by adding.
/issue add 8235404
Test summary in jtreg needs an update

@alisenchung alisenchung changed the title [macos] JOptionPane blocks drawing string on another component 8235404: [macos] JOptionPane blocks drawing string on another component Aug 1, 2024
@openjdk openjdk bot added the rfr Pull request is ready for review label Aug 1, 2024
@mlbridge
Copy link

mlbridge bot commented Aug 1, 2024

Webrevs

@alisenchung
Copy link
Contributor Author

@kumarabhi006 I've updated the test from your feedback. Could you re-review the changes?

Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix looks good except for minor spacing issues.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 5, 2024
Copy link
Contributor

@DamonGuy DamonGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix itself looks like it's working fine now. I agree to handle the small comment Harshitha left already, but otherwise lgtm.

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Aug 6, 2024
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 6, 2024
@alisenchung
Copy link
Contributor Author

/integrate

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Aug 6, 2024
@openjdk
Copy link

openjdk bot commented Aug 6, 2024

@alisenchung This pull request has not yet been marked as ready for integration.

Comment on lines 7 to 9
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
Copy link
Contributor

@honkar-jdk honkar-jdk Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the "Classpath" exception header only applicable to source code files?
Can you please verify with other test file copyright header.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I've removed the classpath portion of the copyright. Can you check over the copyright again to make sure it's correct?

Copy link
Contributor

@honkar-jdk honkar-jdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 6, 2024
@alisenchung
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Aug 6, 2024

Going to push as commit fc652d2.
Since your change was applied there have been 668 commits pushed to the master branch:

  • 22a3421: 8337786: Fix simple -Wzero-as-null-pointer-constant warnings in aarch64 code
  • ff634a9: 8337506: Disable "best-fit" mapping on Windows command line
  • 3f8b3e5: 8337887: [JVMCI] Clarify jdk.vm.ci.code.Architecture.getName javadoc
  • 53db937: 8337780: RISC-V: C2: Change C calling convention for sp to NS
  • ab509f1: 8337654: Relocate uncommon trap stub from SharedRuntime to OptoRuntime
  • 1348ece: 8332120: Potential compilation failure in istream.cpp:205 - loss of data on conversion
  • ef909bd: 8335121: Native memory leak when not recording any events
  • a117945: 8337344: Redundant javadoc at RasterPrinterJob.isCancelled
  • f9b8a22: 8337798: JFR: Remove jdk/jfr/api/consumer/recordingstream/TestOnEvent.java from ProblemList.txt
  • 958786b: 8332522: SwitchBootstraps::mappedEnumLookup constructs unused array
  • ... and 658 more: https://git.openjdk.org/jdk/compare/6238bc8da2abe7a1f0cdd98c0af01e9ba1869ec3...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Aug 6, 2024
@openjdk openjdk bot closed this Aug 6, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Aug 6, 2024
@openjdk
Copy link

openjdk bot commented Aug 6, 2024

@alisenchung Pushed as commit fc652d2.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

5 participants