Skip to content

Commit bbe894f

Browse files
committed
8284288: Use SVG images for FocusSpec.html and Modality.html
Reviewed-by: prr, serb
1 parent e524107 commit bbe894f

15 files changed

+946
-11
lines changed
-6.77 KB
Binary file not shown.
Lines changed: 173 additions & 0 deletions
Loading

src/java.desktop/share/classes/java/awt/doc-files/FocusSpec.html

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>The AWT Focus Subsystem</title>
66
</head>
77
<!--
8-
Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
8+
Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
99
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1010
1111
This code is free software; you can redistribute it and/or modify it
@@ -180,8 +180,8 @@ <h2>Overview of KeyboardFocusManager</h2>
180180
descendants.
181181

182182
<p>
183-
Here is an example:<br> <img src="FocusCycle.gif"
184-
alt="Three groups as described below: ABCF BDE and DGH. "><br>
183+
Here is an example:<br> <img src="FocusCycle.svg"
184+
alt="Three groups as described below: ABCF, BDE and DGH.">
185185

186186
<p>Assume the following:
187187
<ul>
@@ -626,9 +626,15 @@ <h2>FocusTraversalPolicy</h2>
626626
that have or inherit empty InputMaps.
627627
</ol>
628628
<p>
629-
The figure below shows an implicit focus transfer:
630-
<br><img src="ImplicitFocusTransfer.gif" alt="Implicit focus transfer."><br>
629+
The figures below show an implicit focus transfer:
630+
<p id="containerFocus1"><img src="ImplicitFocusTransfer1.svg"
631+
alt="Implicit focus transfer for traversable container."><br>
632+
pic.1
633+
<p id="containerFocus2"><img src="ImplicitFocusTransfer2.svg"
634+
alt="Implicit focus transfer for non-traversable container."><br>
635+
pic.2
631636

637+
<p>
632638
Assume the following:
633639
<ul>
634640
<li><b>A</b>, <b>B</b> and <b>C</b> are components in some window (a container)
@@ -639,8 +645,8 @@ <h2>FocusTraversalPolicy</h2>
639645
Container in the pic.2.
640646
<li>In such a case a forward traversal will look as follows:
641647
<ul>
642-
<li> pic.1 : <b>A</b> -> <b>R</b> -> <b>B</b> -> <b>C</b>
643-
<li> pic.2 : <b>A</b> -> <b>B</b> -> <b>C</b>
648+
<li> pic.1 : <b>A</b> &rarr; <b>R</b> &rarr; <b>B</b> &rarr; <b>C</b>
649+
<li> pic.2 : <b>A</b> &rarr; <b>B</b> &rarr; <b>C</b>
644650
</ul>
645651
</ul>
646652

Binary file not shown.
Lines changed: 120 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)