Font2DTest does not ensure that the initially displayed is dialog, despite it 
being the initial menu selection.
This calls setUseFamilyAndStyle() to ensure that.

There's also problem with the initial display of fonts selected by full name .. 
since the actual name in the menu
is Dialog.plain but the code sets Dialog to be the selected entry .. 

One other minor annoyance is that when selecting a new font family in the 
family + subfamily menu that menu item 0 is the default. If we see a sub-family 
of "Regular" or ".plain" select that item instead.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8396884

Changes: https://git.openjdk.org/jdk/pull/33779/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33779&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8396884
  Stats: 11 lines in 1 file changed: 7 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/33779.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33779/head:pull/33779

PR: https://git.openjdk.org/jdk/pull/33779

Reply via email to