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.
------------- Commit messages: - update test - update test - add test - init commit Changes: https://git.openjdk.org/jdk/pull/20359/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20359&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8235404 Stats: 85 lines in 2 files changed: 84 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/20359.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20359/head:pull/20359 PR: https://git.openjdk.org/jdk/pull/20359