8199150: Accessibility issues in java.desktop

8150156: Update bugs.sun.com references to bugs.java.com

Reviewed-by: prr
This commit is contained in:
Sergey Bylokhov 2018-05-31 09:52:32 -07:00
parent 414dd381fc
commit b7dbfb2e28
20 changed files with 199 additions and 191 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -324,7 +324,7 @@ public final class TypeResolver {
/** /**
* Replaces a {@link GenericArrayType GenericArrayType} * Replaces a {@link GenericArrayType GenericArrayType}
* with plain array class where it is possible. * with plain array class where it is possible.
* Bug <a href="http://bugs.sun.com/view_bug.do?bug_id=5041784">5041784</a> * Bug <a href="https://bugs.java.com/view_bug.do?bug_id=5041784">5041784</a>
* is that arrays of non-generic type sometimes show up * is that arrays of non-generic type sometimes show up
* as {@link GenericArrayType GenericArrayType} when using reflection. * as {@link GenericArrayType GenericArrayType} when using reflection.
* For example, a {@code String[]} might show up * For example, a {@code String[]} might show up

View file

@ -5,7 +5,7 @@
<title>AWT Threading Issues</title> <title>AWT Threading Issues</title>
</head> </head>
<!-- <!--
Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1>AWT Threading Issues</h1> <h1>AWT Threading Issues</h1>
<a id="ListenersThreads"></a> <a id="ListenersThreads"></a>
@ -121,7 +121,7 @@ Implementation-dependent behavior.
Prior to 1.4, the helper threads were never terminated. Prior to 1.4, the helper threads were never terminated.
<p> <p>
Starting with 1.4, the behavior has changed as a result of the fix for Starting with 1.4, the behavior has changed as a result of the fix for
<a href="http://bugs.sun.com/view_bug.do?bug_id=4030718"> <a href="https://bugs.java.com/view_bug.do?bug_id=4030718">
4030718</a>. With the current implementation, AWT terminates all its 4030718</a>. With the current implementation, AWT terminates all its
helper threads allowing the application to exit cleanly when the helper threads allowing the application to exit cleanly when the
following three conditions are true: following three conditions are true:
@ -154,11 +154,11 @@ will exit cleanly in all cases. Two examples:
<ul> <ul>
<li> Other packages can create displayable components for internal <li> Other packages can create displayable components for internal
needs and never make them undisplayable. See needs and never make them undisplayable. See
<a href="http://bugs.sun.com/view_bug.do?bug_id=4515058"> <a href="https://bugs.java.com/view_bug.do?bug_id=4515058">
4515058</a>, 4515058</a>,
<a href="http://bugs.sun.com/view_bug.do?bug_id=4671025"> <a href="https://bugs.java.com/view_bug.do?bug_id=4671025">
4671025</a>, and 4671025</a>, and
<a href="http://bugs.sun.com/view_bug.do?bug_id=4465537"> <a href="https://bugs.java.com/view_bug.do?bug_id=4465537">
4465537</a>. 4465537</a>.
<li> Both Microsoft Windows and X11 allow an application to send native <li> Both Microsoft Windows and X11 allow an application to send native
events to windows that belong to another application. With this events to windows that belong to another application. With this
@ -192,5 +192,6 @@ non-daemon thread that blocks forever.
<cite>The Java&trade; Virtual Machine Specification</cite> <cite>The Java&trade; Virtual Machine Specification</cite>
guarantees guarantees
that the JVM doesn't exit until this thread terminates. that the JVM doesn't exit until this thread terminates.
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>AWT Desktop Properties</title> <title>AWT Desktop Properties</title>
</head> </head>
<!-- <!--
Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1>AWT Desktop Properties</h1> <h1>AWT Desktop Properties</h1>
The following refers to standard AWT desktop properties that The following refers to standard AWT desktop properties that
@ -274,5 +274,6 @@ only: {@code NOBUTTON}, {@code BUTTON1}, {@code BUTTON2} and
This property should be used when there is no need in listening mouse events fired as a result of This property should be used when there is no need in listening mouse events fired as a result of
activity with extra mouse button. activity with extra mouse button.
By default this property is set to {@code true}. By default this property is set to {@code true}.
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>The AWT Focus Subsystem</title> <title>The AWT Focus Subsystem</title>
</head> </head>
<!-- <!--
Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1>The AWT Focus Subsystem</h1> <h1>The AWT Focus Subsystem</h1>
<p> <p>
@ -101,7 +102,7 @@
</ul> </ul>
<a id="Overview"></a> <a id="Overview"></a>
<h3>Overview of KeyboardFocusManager</h3> <h2>Overview of KeyboardFocusManager</h2>
<p> <p>
The focus model is centralized around a single class, The focus model is centralized around a single class,
KeyboardFocusManager, that provides a set of APIs for client code to KeyboardFocusManager, that provides a set of APIs for client code to
@ -213,7 +214,7 @@ implementation in the <code>DefaultKeyboardFocusManager</code> class.
<a id="BrowserContexts"></a> <a id="BrowserContexts"></a>
<h3>KeyboardFocusManager and Browser Contexts</h3> <h2>KeyboardFocusManager and Browser Contexts</h2>
<p> <p>
Some browsers partition applets in different code bases into separate Some browsers partition applets in different code bases into separate
contexts, and establish walls between these contexts. Each thread and contexts, and establish walls between these contexts. Each thread and
@ -229,7 +230,7 @@ owner, focused Window, or active Window, per ClassLoader.
<a id="KeyEventDispatcher"></a> <a id="KeyEventDispatcher"></a>
<h3>KeyEventDispatcher and KeyEventPostProcessor</h3> <h2>KeyEventDispatcher and KeyEventPostProcessor</h2>
<p> <p>
While the user's KeyEvents should generally be delivered to the focus While the user's KeyEvents should generally be delivered to the focus
owner, there are rare cases where this is not desirable. An input owner, there are rare cases where this is not desirable. An input
@ -272,7 +273,7 @@ KeyEventPostProcessor, and similar restrictions apply to its use in
that capacity. that capacity.
<a id="FocusEventAndWindowEvent"></a> <a id="FocusEventAndWindowEvent"></a>
<h3>FocusEvent and WindowEvent</h3> <h2>FocusEvent and WindowEvent</h2>
<p> <p>
The AWT defines the following six event types central to the focus The AWT defines the following six event types central to the focus
model in two different <code>java.awt.event</code> classes: model in two different <code>java.awt.event</code> classes:
@ -296,7 +297,7 @@ model in two different <code>java.awt.event</code> classes:
</ol> </ol>
<a id="EventDelivery"></a> <a id="EventDelivery"></a>
<h3>Event Delivery</h3> <h2>Event Delivery</h2>
<p> <p>
If the focus is not in java application and the user clicks on a focusable If the focus is not in java application and the user clicks on a focusable
child Component<b>a</b> of an inactive Frame <b>b</b>, the following events child Component<b>a</b> of an inactive Frame <b>b</b>, the following events
@ -347,7 +348,7 @@ and VetoableChangeListener</a>.
<a id="OppositeComponents"></a> <a id="OppositeComponents"></a>
<h3>Opposite Components and Windows</h3> <h2>Opposite Components and Windows</h2>
<p> <p>
Each event includes information about the "opposite" Component or Each event includes information about the "opposite" Component or
Window involved in the focus or activation change. For example, for a Window involved in the focus or activation change. For example, for a
@ -371,7 +372,7 @@ using the opposite Component of a focus change that occurred within a
top-level Window. top-level Window.
<a id="TemporaryFocusEvents"></a> <a id="TemporaryFocusEvents"></a>
<h3>Temporary FocusEvents</h3> <h2>Temporary FocusEvents</h2>
<p> <p>
<code>FOCUS_GAINED</code> and <code>FOCUS_LOST</code> events are <code>FOCUS_GAINED</code> and <code>FOCUS_LOST</code> events are
marked as either temporary or permanent. marked as either temporary or permanent.
@ -416,7 +417,7 @@ Components. This method is not intended for general use, but exists
instead as a hook for lightweight Component libraries, such as Swing. instead as a hook for lightweight Component libraries, such as Swing.
<a id="FocusTraversal"></a> <a id="FocusTraversal"></a>
<h3>Focus Traversal</h3> <h2>Focus Traversal</h2>
<p> <p>
Each Component defines its own Set of focus traversal keys for a given Each Component defines its own Set of focus traversal keys for a given
focus traversal operation. Components support separate Sets of keys focus traversal operation. Components support separate Sets of keys
@ -491,7 +492,7 @@ root, then no focus traversal operation occurs.
<a id="FocusTraversalPolicy"></a> <a id="FocusTraversalPolicy"></a>
<h3>FocusTraversalPolicy</h3> <h2>FocusTraversalPolicy</h2>
<p> <p>
A <code>FocusTraversalPolicy</code> defines the order in which Components within A <code>FocusTraversalPolicy</code> defines the order in which Components within
@ -653,7 +654,7 @@ All other applications, including pure AWT applications, will use
<code>DefaultFocusTraversalPolicy</code> by default. <code>DefaultFocusTraversalPolicy</code> by default.
<a id="FocusTraversalPolicyProviders"></a> <a id="FocusTraversalPolicyProviders"></a>
<h3>Focus Traversal Policy Providers</h3> <h2>Focus Traversal Policy Providers</h2>
<p> <p>
A Container that isn't a focus cycle root has an option to provide a A Container that isn't a focus cycle root has an option to provide a
FocusTraversalPolicy of its own. To do so, one needs to set Container's focus FocusTraversalPolicy of its own. To do so, one needs to set Container's focus
@ -740,7 +741,7 @@ All other applications, including pure AWT applications, will use
</ul> </ul>
<a id="ProgrammaticTraversal"></a> <a id="ProgrammaticTraversal"></a>
<h3>Programmatic Traversal</h3> <h2>Programmatic Traversal</h2>
<p> <p>
In addition to user-initiated focus traversal, client code can In addition to user-initiated focus traversal, client code can
initiate a focus traversal operation programmatically. To client code, initiate a focus traversal operation programmatically. To client code,
@ -811,7 +812,7 @@ unchanged.
<a id="Focusability"></a> <a id="Focusability"></a>
<h3>Focusability</h3> <h2>Focusability</h2>
<p> <p>
A focusable Component can become the focus owner ("focusability") and A focusable Component can become the focus owner ("focusability") and
participates in keyboard focus traversal ("focus traversability") with participates in keyboard focus traversal ("focus traversability") with
@ -825,7 +826,7 @@ change this default by calling Component.setFocusable(boolean).
<a id="FocusableWindows"></a> <a id="FocusableWindows"></a>
<h3>Focusable Windows</h3> <h2>Focusable Windows</h2>
<p> <p>
To support palette windows and input methods, client code can prevent To support palette windows and input methods, client code can prevent
a Window from becoming the focused Window. By transitivity, this a Window from becoming the focused Window. By transitivity, this
@ -877,7 +878,7 @@ all such focus change requests will fail. In this case, the global
focus owner will be cleared and the focused Window will remain unchanged. focus owner will be cleared and the focused Window will remain unchanged.
<a id="RequestingFocus"></a> <a id="RequestingFocus"></a>
<h3>Requesting Focus</h3> <h2>Requesting Focus</h2>
<p> <p>
A Component can request that it become the focus owner by calling A Component can request that it become the focus owner by calling
@ -949,7 +950,7 @@ a temporary state.
See <a href="#TemporaryFocusEvents">Temporary FocusEvents</a> See <a href="#TemporaryFocusEvents">Temporary FocusEvents</a>
<a id="FocusAndPropertyChangeListener"></a> <a id="FocusAndPropertyChangeListener"></a>
<h3>Focus and PropertyChangeListener</h3> <h2>Focus and PropertyChangeListener</h2>
<p> <p>
Client code can listen to changes in context-wide focus state, or to Client code can listen to changes in context-wide focus state, or to
changes in focus-related state in Components, via changes in focus-related state in Components, via
@ -1020,7 +1021,7 @@ Window will never see a <code>PropertyChangeEvent</code> for the
A Window is always a focus cycle root; this property cannot change. A Window is always a focus cycle root; this property cannot change.
<p> <p>
<a id="FocusAndVetoableChangeListener"></a> <a id="FocusAndVetoableChangeListener"></a>
<h3>Focus and VetoableChangeListener</h3> <h2>Focus and VetoableChangeListener</h2>
<p> <p>
The <code>KeyboardFocusManager</code> also supports The <code>KeyboardFocusManager</code> also supports
<code>VetoableChangeListener</code>s for the following properties: <code>VetoableChangeListener</code>s for the following properties:
@ -1089,7 +1090,7 @@ vetoed focus changes and recovery attempts.
<a id="ZOrder"></a> <a id="ZOrder"></a>
<h3>Z-Order</h3> <h2>Z-Order</h2>
<p> <p>
On some native windowing systems, the Z-order of a Window can affect On some native windowing systems, the Z-order of a Window can affect
its focused or active (if applicable) state. On Microsoft Windows, the its focused or active (if applicable) state. On Microsoft Windows, the
@ -1169,7 +1170,7 @@ Microsoft Windows and Solaris is as follows:
</ul> </ul>
<a id="ReplacingDefaultKeyboardFocusManager"></a> <a id="ReplacingDefaultKeyboardFocusManager"></a>
<h3>Replacing DefaultKeyboardFocusManager</h3> <h2>Replacing DefaultKeyboardFocusManager</h2>
<p> <p>
<code>KeyboardFocusManager</code>s are pluggable at the browser context <code>KeyboardFocusManager</code>s are pluggable at the browser context
level. Client code can subclass <code>KeyboardFocusManager</code> or level. Client code can subclass <code>KeyboardFocusManager</code> or
@ -1325,7 +1326,7 @@ and VetoableChangeListener</a>.
</ul> </ul>
<a id="Incompatibilities"></a> <a id="Incompatibilities"></a>
<h3>Incompatibilities with Previous Releases</h3> <h2>Incompatibilities with Previous Releases</h2>
<p><b>Cross-platform changes:</b> <p><b>Cross-platform changes:</b>
<ol> <ol>
<li>The default focus traversability for all Components is now <li>The default focus traversability for all Components is now
@ -1361,6 +1362,6 @@ and VetoableChangeListener</a>.
change requests in all cases. Previously, requests were granted change requests in all cases. Previously, requests were granted
for heavyweights, but denied for lightweights. for heavyweights, but denied for lightweights.
</ol> </ol>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>The AWT Modality</title> <title>The AWT Modality</title>
</head> </head>
<!-- <!--
Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1>The AWT Modality</h1> <h1>The AWT Modality</h1>
<p> <p>
@ -50,7 +50,7 @@
</ul> </ul>
<a id="Definitions"></a> <a id="Definitions"></a>
<h3>Definitions</h3> <h2>Definitions</h2>
<p> <p>
<u>Document</u> - a window without an owner that, together with <u>Document</u> - a window without an owner that, together with
@ -92,7 +92,7 @@
<hr></blockquote> <hr></blockquote>
<a id="ModalityTypes"></a> <a id="ModalityTypes"></a>
<h3>Modality types</h3> <h2>Modality types</h2>
<p> <p>
There are four supported modality types : There are four supported modality types :
@ -156,7 +156,7 @@
<hr></blockquote> <hr></blockquote>
<a id="ShowHideBlocking"></a> <a id="ShowHideBlocking"></a>
<h3>Show/hide blocking</h3> <h2>Show/hide blocking</h2>
<p> <p>
<u>Showing the window or modeless dialog: "F"</u><br> <u>Showing the window or modeless dialog: "F"</u><br>
@ -261,7 +261,7 @@
are performed for each of them in the order they were initially shown. are performed for each of them in the order they were initially shown.
<a id="ModalExclusion"></a> <a id="ModalExclusion"></a>
</p><h3>Modal exclusion</h3> </p><h2>Modal exclusion</h2>
<p> <p>
There are two modal exclusion types introduced as of JDK 6 There are two modal exclusion types introduced as of JDK 6
@ -287,7 +287,7 @@
</blockquote> </blockquote>
<a id="Related"></a> <a id="Related"></a>
<h3>Related AWT features</h3> <h2>Related AWT features</h2>
<p> <p>
<u>Always-On-Top</u><br> <u>Always-On-Top</u><br>
@ -331,7 +331,7 @@
unchanged. unchanged.
<a id="Security"></a> <a id="Security"></a>
<h3>Security</h3> <h2>Security</h2>
<p> <p>
A special <code>AWTPermission</code>, <code>"toolkitModality"</code>, A special <code>AWTPermission</code>, <code>"toolkitModality"</code>,
@ -344,7 +344,7 @@
blocked by a browser's or JWS's modal dialog. blocked by a browser's or JWS's modal dialog.
<a id="PlatformSupport"></a> <a id="PlatformSupport"></a>
</p><h3>Platform support</h3> </p><h2>Platform support</h2>
<p> <p>
Two <code>java.awt.Toolkit</code> methods allow you to check whether Two <code>java.awt.Toolkit</code> methods allow you to check whether
@ -363,7 +363,7 @@
</li></ul> </li></ul>
<a id="Compatibility"></a> <a id="Compatibility"></a>
<h3>Compatibility</h3> <h2>Compatibility</h2>
<p> <p>
The default modality type is application-modal. It is used by the API The default modality type is application-modal. It is used by the API
@ -374,7 +374,7 @@
applets and applications launched from Java Web Start. applets and applications launched from Java Web Start.
<a id="Examples"></a> <a id="Examples"></a>
</p><h3>Examples</h3> </p><h2>Examples</h2>
<table border="0"> <table border="0">
<tbody><tr> <tbody><tr>
@ -458,5 +458,5 @@
</td> </td>
</tr> </tr>
</tbody></table> </tbody></table>
</main>
</body></html> </body></html>

View file

@ -5,7 +5,7 @@
<title>BMP Metadata Format Specification</title> <title>BMP Metadata Format Specification</title>
</head> </head>
<!-- <!--
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>BMP Metadata Format Specification</h1> <h1>BMP Metadata Format Specification</h1>
The XML schema for the native image metadata format is as follows: The XML schema for the native image metadata format is as follows:
@ -160,5 +161,5 @@ The XML schema for the native image metadata format is as follows:
</pre> </pre>
@since 1.5 @since 1.5
</main>
</body> </body>

View file

@ -30,7 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>GIF Metadata Format Specification</h1> <h1>GIF Metadata Format Specification</h1>
<a id="gif_stream_metadata_format"></a> <a id="gif_stream_metadata_format"></a>
<h2>GIF Stream Metadata Format Specification</h2> <h2>GIF Stream Metadata Format Specification</h2>
@ -434,6 +434,6 @@ advanced only on user input.
"TRUE")</td> "TRUE")</td>
</tr> </tr>
</table> </table>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>JPEG Metadata Format Specification and Usage Notes</title> <title>JPEG Metadata Format Specification and Usage Notes</title>
</head> </head>
<!-- <!--
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>JPEG Metadata Format Specification and Usage Notes</h1> <h1>JPEG Metadata Format Specification and Usage Notes</h1>
<p> <p>
@ -1159,6 +1159,6 @@ format, performs a <code>reset</code> followed by a merge of the new tree.
&lt;!-- All elements are as defined above for image metadata --&gt; &lt;!-- All elements are as defined above for image metadata --&gt;
]&gt; ]&gt;
</pre> </pre>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>PNG Metadata Format Specification</title> <title>PNG Metadata Format Specification</title>
</head> </head>
<!-- <!--
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>PNG Metadata Format Specification</h1> <h1>PNG Metadata Format Specification</h1>
<p> <p>
@ -561,6 +561,6 @@ written, or to determine the order of the chunks in a file being read.
&lt;!-- Data type: String --&gt; &lt;!-- Data type: String --&gt;
]&gt; ]&gt;
</pre> </pre>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>Standard Metadata Format Specification</title> <title>Standard Metadata Format Specification</title>
</head> </head>
<!-- <!--
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>Standard (Plug-in Neutral) Metadata Format Specification</h1> <h1>Standard (Plug-in Neutral) Metadata Format Specification</h1>
<p> The plug-in neutral "javax_imageio_1.0" format consists <p> The plug-in neutral "javax_imageio_1.0" format consists
@ -394,6 +394,6 @@ following DTD:
&lt;!-- Data type: Integer --&gt; &lt;!-- Data type: Integer --&gt;
]&gt; ]&gt;
</pre> </pre>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>TIFF Metadata Format Specification and Usage Notes</title> <title>TIFF Metadata Format Specification and Usage Notes</title>
</head> </head>
<!-- <!--
Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>TIFF Metadata Format Specification and Usage Notes</h1> <h1>TIFF Metadata Format Specification and Usage Notes</h1>
<a href="#Reading">Reading Images</a> <a href="#Reading">Reading Images</a>
@ -69,24 +69,24 @@ questions.
<a href="#StreamMetadata">Native Stream Metadata Format</a><br/> <a href="#StreamMetadata">Native Stream Metadata Format</a><br/>
<a href="#ImageMetadata">Native Image Metadata Format</a> <a href="#ImageMetadata">Native Image Metadata Format</a>
<h3><a id="Reading">Reading Images</a></h3> <h2><a id="Reading">Reading Images</a></h2>
TIFF images are read by an <a href="../../ImageReader.html">ImageReader</a> TIFF images are read by an <a href="../../ImageReader.html">ImageReader</a>
which may be controlled by its public interface as well as via a supplied which may be controlled by its public interface as well as via a supplied
<a href="../../plugins/tiff/TIFFImageReadParam.html">TIFFImageReadParam</a>. <a href="../../plugins/tiff/TIFFImageReadParam.html">TIFFImageReadParam</a>.
<!-- <h4>Supported Image Types</h4> --> <!-- <h3>Supported Image Types</h3> -->
<!-- Table? --> <!-- Table? -->
<h4><a id="ColorConversionRead">Color Conversion</a></h4> <h3><a id="ColorConversionRead">Color Conversion</a></h3>
<p>If the source image data <p>If the source image data
have photometric type CIE L*a*b* or YCbCr, and the destination color space have photometric type CIE L*a*b* or YCbCr, and the destination color space
type is RGB, then the source image data will be automatically converted to type is RGB, then the source image data will be automatically converted to
RGB using an internal color converter.</p> RGB using an internal color converter.</p>
<h4><a id="ColorSpacesRead">Color Spaces</a></h4> <h3><a id="ColorSpacesRead">Color Spaces</a></h3>
The raw color space assigned by default, i.e., in the absence of a The raw color space assigned by default, i.e., in the absence of a
user-supplied <a href="../../ImageTypeSpecifier.html">ImageTypeSpecifier</a>, user-supplied <a href="../../ImageTypeSpecifier.html">ImageTypeSpecifier</a>,
@ -154,7 +154,7 @@ foregoing, then an <code>ImageTypeSpecifier</code> should be
supplied to the reader and should be derived from a color space which is correct supplied to the reader and should be derived from a color space which is correct
for the data in question.</p> for the data in question.</p>
<h4><a id="ICCProfilesRead">ICC Profiles</a></h4> <h3><a id="ICCProfilesRead">ICC Profiles</a></h3>
If an ICC profile is contained in the image metadata If an ICC profile is contained in the image metadata
(<a href="../../plugins/tiff/BaselineTIFFTagSet.html"> (<a href="../../plugins/tiff/BaselineTIFFTagSet.html">
@ -196,7 +196,7 @@ space will be included in the
more than one type, the first one will be based on the ICC profile and the more than one type, the first one will be based on the ICC profile and the
second on the inferred color space.</p> second on the inferred color space.</p>
<h4><a id="MetadataIssuesRead">Metadata Issues</a></h4> <h3><a id="MetadataIssuesRead">Metadata Issues</a></h3>
By default all recognized fields in the TIFF image file directory (IFD) are By default all recognized fields in the TIFF image file directory (IFD) are
loaded into the native image metadata object. Which fields are loaded may be loaded into the native image metadata object. Which fields are loaded may be
@ -226,8 +226,8 @@ object may simplify gaining access to metadata values. An instance of
object returned by the TIFF reader using the object returned by the TIFF reader using the
<code>TIFFDirectory.createFromMetadata</code> method.</p> <code>TIFFDirectory.createFromMetadata</code> method.</p>
<h5><a id="MapNativeStandard"></a> <h4><a id="MapNativeStandard"></a>
Mapping of TIFF Native Image Metadata to the Standard Metadata Format</h5> Mapping of TIFF Native Image Metadata to the Standard Metadata Format</h4>
The derivation of standard metadata format The derivation of standard metadata format
<a href="standard_metadata.html">javax_imageio_1.0</a> <a href="standard_metadata.html">javax_imageio_1.0</a>
@ -349,12 +349,12 @@ unassociated alpha =&gt; "nonpremultiplied".</td>
</tr> </tr>
</table> </table>
<h4><a id="ExifRead">Reading Exif Images</a></h4> <h3><a id="ExifRead">Reading Exif Images</a></h3>
The TIFF reader may be used to read an uncompressed Exif image or the The TIFF reader may be used to read an uncompressed Exif image or the
contents of the <code>APP1</code> marker segment of a compressed Exif image. contents of the <code>APP1</code> marker segment of a compressed Exif image.
<h5><a id="ExifReadTIFF">Reading Uncompressed Exif Images</a></h5> <h4><a id="ExifReadTIFF">Reading Uncompressed Exif Images</a></h4>
An uncompressed Exif image is a one- or two-page uncompressed TIFF image An uncompressed Exif image is a one- or two-page uncompressed TIFF image
with a specific ordering of its IFD and image data content. Each pixel with a specific ordering of its IFD and image data content. Each pixel
@ -386,7 +386,7 @@ Note that the Exif thumbnail is treated as a separate page in the TIFF
stream and not as a thumbnail, i.e., stream and not as a thumbnail, i.e.,
<code>tiffReader.hasThumbnails(0)</code> will return <code>false</code>. <code>tiffReader.hasThumbnails(0)</code> will return <code>false</code>.
<h5><a id="ExifReadJPEG">Reading Compressed Exif Images</a></h5> <h4><a id="ExifReadJPEG">Reading Compressed Exif Images</a></h4>
A compressed Exif image is a 3-band ISO/IEC 10918-1 baseline DCT JPEG stream A compressed Exif image is a 3-band ISO/IEC 10918-1 baseline DCT JPEG stream
with an inserted <code>APP1</code> marker segment. The parameters of the marker with an inserted <code>APP1</code> marker segment. The parameters of the marker
@ -453,7 +453,7 @@ images. Calling <code>tiffReader.read(0,&nbsp;readParam)</code> will throw
an exception as the primary image in the embedded TIFF stream is always an exception as the primary image in the embedded TIFF stream is always
empty; the primary image should be obtained using the JPEG reader itself. empty; the primary image should be obtained using the JPEG reader itself.
<h3><a id="Writing">Writing Images</a></h3> <h2><a id="Writing">Writing Images</a></h2>
TIFF images are written by a <a href="../../ImageWriter.html">ImageWriter</a> which may be TIFF images are written by a <a href="../../ImageWriter.html">ImageWriter</a> which may be
controlled by its public interface as well as via a supplied controlled by its public interface as well as via a supplied
@ -477,11 +477,11 @@ compression is being used and strips are being written, the number of
rows per strip is rounded to a multiple of 8 times the maximum MCU over rows per strip is rounded to a multiple of 8 times the maximum MCU over
both dimensions.</p> both dimensions.</p>
<!-- <h4>Supported Image Types</h4> --> <!-- <h3>Supported Image Types</h3> -->
<!-- Table? --> <!-- Table? -->
<h4><a id="Compression">Compression</a></h4> <h3><a id="Compression">Compression</a></h3>
The compression type may be set via the <code>setCompressionType()</code> method of The compression type may be set via the <code>setCompressionType()</code> method of
the <code>ImageWriteParam</code> after setting the compression mode to the <code>ImageWriteParam</code> after setting the compression mode to
@ -576,14 +576,14 @@ to derive the Deflate compression level. For JPEG the floating point
quality value is passed directly to the JPEG writer plug-in which quality value is passed directly to the JPEG writer plug-in which
interprets it in the usual way.</p> interprets it in the usual way.</p>
<h4><a id="ColorConversionWrite">Color Conversion</a></h4> <h3><a id="ColorConversionWrite">Color Conversion</a></h3>
<p>If the source image data <p>If the source image data
color space type is RGB, and the destination photometric type is CIE L*a*b* or color space type is RGB, and the destination photometric type is CIE L*a*b* or
YCbCr, then the source image data will be automatically converted from YCbCr, then the source image data will be automatically converted from
RGB using an internal color converter.</p> RGB using an internal color converter.</p>
<h4><a id="ICCProfilesWrite">ICC Profiles</a></h4> <h3><a id="ICCProfilesWrite">ICC Profiles</a></h3>
An <code>ICC Profile</code> field will be written if either: An <code>ICC Profile</code> field will be written if either:
<ul> <ul>
@ -600,7 +600,7 @@ to the <code>ImageTypeSpecifier</code> of the image being written.
</li> </li>
</ul> </ul>
<h4><a id="MetadataIssuesWrite">Metadata Issues</a></h4> <h3><a id="MetadataIssuesWrite">Metadata Issues</a></h3>
Some behavior of the writer is affected by or may affect the contents of Some behavior of the writer is affected by or may affect the contents of
the image metadata which may be supplied by the user. the image metadata which may be supplied by the user.
@ -713,8 +713,8 @@ field to be written a <code>TIFFField</code> may be added to the
<code>IIOMetadata</code> object so obtained may then be passed to the TIFF <code>IIOMetadata</code> object so obtained may then be passed to the TIFF
writer.</p> writer.</p>
<h5><a id="MapStandardNative"></a> <h4><a id="MapStandardNative"></a>
Mapping of the Standard Metadata Format to TIFF Native Image Metadata</h5> Mapping of the Standard Metadata Format to TIFF Native Image Metadata</h4>
The derivation of <a href="#ImageMetadata">TIFF native image metadata</a> The derivation of <a href="#ImageMetadata">TIFF native image metadata</a>
elements from the standard metadata format elements from the standard metadata format
@ -829,12 +829,12 @@ TIFF Fields, e.g., "Software", then the field is added with content
</tr> </tr>
</table> </table>
<h4><a id="ExifWrite">Writing Exif Images</a></h4> <h3><a id="ExifWrite">Writing Exif Images</a></h3>
The TIFF writer may be used to write an uncompressed Exif image or the The TIFF writer may be used to write an uncompressed Exif image or the
contents of the <code>APP1</code> marker segment of a compressed Exif image. contents of the <code>APP1</code> marker segment of a compressed Exif image.
<h5><a id="ExifWriteTIFF">Writing Uncompressed Exif Images</a></h5> <h4><a id="ExifWriteTIFF">Writing Uncompressed Exif Images</a></h4>
When writing a sequence of images each image is normally recorded as When writing a sequence of images each image is normally recorded as
{IFD,&nbsp;IFD Value,&nbsp;Image Data}. The Exif specification requires {IFD,&nbsp;IFD Value,&nbsp;Image Data}. The Exif specification requires
@ -901,7 +901,7 @@ written:
} }
</code></pre> </code></pre>
<h5><a id="ExifWriteJPEG">Writing Compressed Exif Images</a></h5> <h4><a id="ExifWriteJPEG">Writing Compressed Exif Images</a></h4>
The structure of the embedded TIFF stream in the <code>APP1</code> segment of a The structure of the embedded TIFF stream in the <code>APP1</code> segment of a
compressed Exif image is identical to the <a href="#ExifStructure"> compressed Exif image is identical to the <a href="#ExifStructure">
@ -1008,7 +1008,7 @@ The <code>"unknown"</code> node created above would be appended to the
and written to the JPEG stream when the primary image is written using and written to the JPEG stream when the primary image is written using
the JPEG writer. the JPEG writer.
<h3><a id="StreamMetadata">Stream Metadata</a></h3> <h2><a id="StreamMetadata">Stream Metadata</a></h2>
The DTD for the TIFF native stream metadata format is as follows: The DTD for the TIFF native stream metadata format is as follows:
@ -1025,7 +1025,7 @@ The DTD for the TIFF native stream metadata format is as follows:
]&gt; ]&gt;
</pre> </pre>
<h3><a id="ImageMetadata">Image Metadata</a></h3> <h2><a id="ImageMetadata">Image Metadata</a></h2>
The DTD for the TIFF native image metadata format is as follows: The DTD for the TIFF native image metadata format is as follows:
@ -1174,6 +1174,6 @@ The DTD for the TIFF native image metadata format is as follows:
</pre> </pre>
@since 9 @since 9
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>WBMP Metadata Format Specification</title> <title>WBMP Metadata Format Specification</title>
</head> </head>
<!-- <!--
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@ questions.
--> -->
<body> <body>
<main role="main">
<h1>WBMP Metadata Format Specification</h1> <h1>WBMP Metadata Format Specification</h1>
The XML schema for the native image metadata format is as follows: The XML schema for the native image metadata format is as follows:
@ -62,5 +63,5 @@ The XML schema for the native image metadata format is as follows:
</pre> </pre>
@since 1.5 @since 1.5
</main>
</body> </body>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -46,7 +46,6 @@ import sun.swing.SwingUtilities2.Section;
import static sun.swing.SwingUtilities2.Section.*; import static sun.swing.SwingUtilities2.Section.*;
/** /**
* <a id="jtree_description"></a>
* A control that displays a set of hierarchical data as an outline. * A control that displays a set of hierarchical data as an outline.
* You can find task-oriented documentation and examples of using trees in * You can find task-oriented documentation and examples of using trees in
* <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html">How to Use Trees</a>, * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html">How to Use Trees</a>,
@ -3778,7 +3777,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
* <code>TreeModel</code> changes. * <code>TreeModel</code> changes.
* <p> * <p>
* For more information on what expanded state means, see the * For more information on what expanded state means, see the
* <a href=#jtree_description>JTree description</a> above. * {@link JTree JTree description} above.
* *
* @return the instance of {@code TreeModelHandler} * @return the instance of {@code TreeModelHandler}
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -882,7 +882,7 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
* To prevent this from happening twice, this method is * To prevent this from happening twice, this method is
* reimplemented to simply paint. * reimplemented to simply paint.
* <p> * <p>
* <em>NOTE:</em> NOTE: Superclass is also not thread-safe in its * <em>NOTE:</em> Superclass is also not thread-safe in its
* rendering of the background, although that is not an issue with the * rendering of the background, although that is not an issue with the
* default rendering. * default rendering.
*/ */
@ -1283,8 +1283,8 @@ public abstract class BasicTextUI extends TextUI implements ViewFactory {
* text component (i.e. the root of the hierarchy) that * text component (i.e. the root of the hierarchy) that
* can be traversed to determine how the model is being * can be traversed to determine how the model is being
* represented spatially. * represented spatially.
* <p style="color:red;"> * <p>
* <b>NOTE:</b>The View hierarchy can * <strong>Warning:</strong> The View hierarchy can
* be traversed from the root view, and other things * be traversed from the root view, and other things
* can be done as well. Things done in this way cannot * can be done as well. Things done in this way cannot
* be protected like simple method calls through the TextUI. * be protected like simple method calls through the TextUI.

View file

@ -5,7 +5,7 @@
<title>Using the Multiplexing Look and Feel</title> <title>Using the Multiplexing Look and Feel</title>
</head> </head>
<!-- <!--
Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1>Using the Multiplexing Look and Feel</h1> <h1>Using the Multiplexing Look and Feel</h1>
<blockquote> <blockquote>
@ -497,6 +497,6 @@ if you use this kind of statement, be careful, because the suppliers
of auxiliary look and feels will most likely have developed and of auxiliary look and feels will most likely have developed and
tested against our Multiplexing look and feel. tested against our Multiplexing look and feel.
</p> </p>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>Nimbus colors</title> <title>Nimbus colors</title>
</head> </head>
<!-- <!--
Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -30,6 +30,7 @@
--> -->
<body> <body>
<main role="main">
<h1 id="primaryColors">Primary Colors</h1> <h1 id="primaryColors">Primary Colors</h1>
<table summary="Nimbus primary colors"> <table summary="Nimbus primary colors">
<tr><th>Key</th><th>Value</th><th>Preview</th></tr> <tr><th>Key</th><th>Value</th><th>Preview</th></tr>
@ -229,6 +230,6 @@
<td width="100" bgcolor="#8e8f91">&nbsp;</td> <td width="100" bgcolor="#8e8f91">&nbsp;</td>
</tr> </tr>
</table> </table>
</main>
</body> </body>
</html> </html>

View file

@ -5,7 +5,7 @@
<title>Component Specific Properties</title> <title>Component Specific Properties</title>
</head> </head>
<!-- <!--
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -29,8 +29,9 @@ or visit www.oracle.com if you need additional information or have any
questions. questions.
--> -->
<body bgcolor="white"> <body>
<h3>Component Specific Properties</h3> <main role="main">
<h1>Component Specific Properties</h1>
<p> The look, and to some degree the feel of Synth <p> The look, and to some degree the feel of Synth
can be customized by way of component specific properties. can be customized by way of component specific properties.
These properties are accessed from <a These properties are accessed from <a
@ -43,7 +44,7 @@ questions.
unspecified: typically a <code>ClassCastException</code> is unspecified: typically a <code>ClassCastException</code> is
thrown, but it is implementation specific. thrown, but it is implementation specific.
</p> </p>
<h4>ArrowButton</h4> <h2>ArrowButton</h2>
<p> ArrowButton is a special type of JButton that renders an arrow. <p> ArrowButton is a special type of JButton that renders an arrow.
ArrowButton is typically not created directly, rather some of the ArrowButton is typically not created directly, rather some of the
Components will create it to render a button with an arrow. The Components will create it to render a button with an arrow. The
@ -52,7 +53,7 @@ JComboBox, JScrollBar and JSplitPane (for the buttons on the divider).
In addition to the <a In addition to the <a
href="#buttonProperties">Button properties</a>, ArrowButton supports href="#buttonProperties">Button properties</a>, ArrowButton supports
the following properties: </p> the following properties: </p>
<h5>ArrowButton Specific Properties</h5> <h3>ArrowButton Specific Properties</h3>
<table border="1" summary="ArrowButton specific properties"> <table border="1" summary="ArrowButton specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -70,11 +71,11 @@ the following properties: </p>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JButton">JButton</a></h4> <h2><a id="JButton">JButton</a></h2>
<p> JButton paints text using the TEXT_FOREGROUND ColorType. In addition <p> JButton paints text using the TEXT_FOREGROUND ColorType. In addition
to the <a href="#buttonProperties">Button properties</a>, JButton to the <a href="#buttonProperties">Button properties</a>, JButton
supports the following property: </p> supports the following property: </p>
<h5>JButton Specific Properties</h5> <h3>JButton Specific Properties</h3>
<table border="1" summary="JButton specific properties"> <table border="1" summary="JButton specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -93,11 +94,11 @@ button that is receiving focus. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JCheckBox">JCheckBox</a></h4> <h2><a id="JCheckBox">JCheckBox</a></h2>
<p> JCheckBox paints text using the TEXT_FOREGROUND ColorType. In <p> JCheckBox paints text using the TEXT_FOREGROUND ColorType. In
addition to the <a href="#buttonProperties">Button properties</a>, addition to the <a href="#buttonProperties">Button properties</a>,
JCheckBox supports the following property: </p> JCheckBox supports the following property: </p>
<h5>JCheckBox Specific Properties</h5> <h3>JCheckBox Specific Properties</h3>
<table border="1" summary="JCheckBox specific properties"> <table border="1" summary="JCheckBox specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -115,7 +116,7 @@ JCheckBox supports the following property: </p>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JComboBox">JComboBox</a></h4> <h2><a id="JComboBox">JComboBox</a></h2>
<p> JComboBox is a composite component that consists of the following <p> JComboBox is a composite component that consists of the following
child Components: </p> child Components: </p>
<table border="1" summary="JComboBox child components"> <table border="1" summary="JComboBox child components">
@ -164,7 +165,7 @@ the renderer is a UIResource. </td>
</tbody> </tbody>
</table> </table>
<h5>JComboBox Specific Properties</h5> <h3>JComboBox Specific Properties</h3>
<table border="1" summary="JComboBox specific properties"> <table border="1" summary="JComboBox specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -183,8 +184,8 @@ with the keyboard. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4>JFileChooser</h4> <h2>JFileChooser</h2>
<h5>JFileChooser Specific Properties</h5> <h3>JFileChooser Specific Properties</h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JFileChooser specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JFileChooser specific properties"
style="width: 100%; text-align: left;"> style="width: 100%; text-align: left;">
<tbody> <tbody>
@ -343,8 +344,8 @@ of the file chooser.<br>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JInternalFrame"></a>JInternalFrame</h4> <h2><a id="JInternalFrame"></a>JInternalFrame</h2>
<h5>JInternalFrame Specific Properties</h5> <h3>JInternalFrame Specific Properties</h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JInternalFrame specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JInternalFrame specific properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -373,11 +374,11 @@ the system menu will be shown.<br>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h4> <h2><a id="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h2>
<p>JInternalFrameTitlePane is the control bar located at the top of the <p>JInternalFrameTitlePane is the control bar located at the top of the
internal frame similar to that found in a frame.<br> internal frame similar to that found in a frame.<br>
</p> </p>
<h5>JInternalFrameTitlePane Specific Properties</h5> <h3>JInternalFrameTitlePane Specific Properties</h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JInternalFrameTitlePane specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JInternalFrameTitlePane specific properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -473,10 +474,10 @@ abililty to close the internal frame.
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JList">JList</a></h4> <h2><a id="JList">JList</a></h2>
<p> JList's sets the name of the renderer to List.renderer. JList <p> JList's sets the name of the renderer to List.renderer. JList
supports the following properties: </p> supports the following properties: </p>
<h5>JList Specific Properties</h5> <h3>JList Specific Properties</h3>
<table border="1" summary="JList specific properties"> <table border="1" summary="JList specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -512,7 +513,7 @@ is not invoked. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="menuProperties">Menu Properties</a></h4> <h2><a id="menuProperties">Menu Properties</a></h2>
<p> The Menu classes (JCheckBoxMenuItem, JMenu, JMenuItem, and <p> The Menu classes (JCheckBoxMenuItem, JMenu, JMenuItem, and
JRadioButtonMenuItem) all support the same set of properties and behave JRadioButtonMenuItem) all support the same set of properties and behave
similarly. Each component consists of two Regions: the region similarly. Each component consists of two Regions: the region
@ -597,12 +598,12 @@ RadioButtonMenuItem. </p>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JOptionPane">JOptionPane</a></h4> <h2><a id="JOptionPane">JOptionPane</a></h2>
<p> JOptionPane is a composite component and may consist of numerous child <p> JOptionPane is a composite component and may consist of numerous child
components, they are: OptionPane.button, OptionPane.label, components, they are: OptionPane.button, OptionPane.label,
OptionPane.comboBox, OptionPane.scrollPane, OptionPane.list, OptionPane.comboBox, OptionPane.scrollPane, OptionPane.list,
OptionPane.textField, OptionPane.iconLabel. </p> OptionPane.textField, OptionPane.iconLabel. </p>
<h5>JOptionPane Specific Properties</h5> <h3>JOptionPane Specific Properties</h3>
<table border="1" summary="JOptionPane specific properties"> <table border="1" summary="JOptionPane specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -713,10 +714,10 @@ it follows the other buttons. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JProgressBar"></a>JProgressBar<br> <h2><a id="JProgressBar"></a>JProgressBar<br>
</h4> </h2>
<h5>JProgressBar Specific Properties<br> <h3>JProgressBar Specific Properties<br>
</h5> </h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JProgressBar specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JProgressBar specific properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -753,11 +754,11 @@ the bouncing box per frame when the progress bar is indeterminate.<br>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h4><a id="JRadioButton">JRadioButton</a></h4> <h2><a id="JRadioButton">JRadioButton</a></h2>
<p> JRadioButton paints text using the TEXT_FOREGROUND ColorType. In <p> JRadioButton paints text using the TEXT_FOREGROUND ColorType. In
addition to the <a href="#buttonProperties">Button properties</a>, addition to the <a href="#buttonProperties">Button properties</a>,
JRadioButton supports the following property: </p> JRadioButton supports the following property: </p>
<h5>JRadioButton Specific Properties</h5> <h3>JRadioButton Specific Properties</h3>
<table border="1" summary="JRadioButton specific properties"> <table border="1" summary="JRadioButton specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -775,7 +776,7 @@ JRadioButton supports the following property: </p>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JScrollBar">JScrollBar</a></h4> <h2><a id="JScrollBar">JScrollBar</a></h2>
<p> JScrollBar is a composite component that consists of the following <p> JScrollBar is a composite component that consists of the following
child Components: </p> child Components: </p>
<table border="1" summary="JScrollBar child components"> <table border="1" summary="JScrollBar child components">
@ -793,7 +794,7 @@ child Components: </p>
</tbody> </tbody>
</table> </table>
<h5>JScrollBar Specific Properties</h5> <h3>JScrollBar Specific Properties</h3>
<table border="1" summary="JScrollBar specific properties"> <table border="1" summary="JScrollBar specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -845,7 +846,7 @@ will be made equal. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="Separator">Separators</a></h4> <h2><a id="Separator">Separators</a></h2>
<p> All of the separator classes, JSeparator, JPopupMenu.Separator and <p> All of the separator classes, JSeparator, JPopupMenu.Separator and
JToolBar.Separator use the same property: </p> JToolBar.Separator use the same property: </p>
<table border="1" summary="Separator classes common properties"> <table border="1" summary="Separator classes common properties">
@ -887,7 +888,7 @@ preferred size will include the Insets. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JScrollPane">JScrollPane</a></h4> <h2><a id="JScrollPane">JScrollPane</a></h2>
<p> <p>
JScrollPane is unique in that it provides a method for setting JScrollPane is unique in that it provides a method for setting
the Border around the JViewport with JViewport throwing an the Border around the JViewport with JViewport throwing an
@ -900,7 +901,7 @@ preferred size will include the Insets. </td>
<code>paintViewportBorder</code> is called to paint the <code>paintViewportBorder</code> is called to paint the
<code>Viewport</code>s border. <code>Viewport</code>s border.
</p> </p>
<h5>JScrollPane Specific Properties</h5> <h3>JScrollPane Specific Properties</h3>
<table border="1" summary="JScrollPane specific properties"> <table border="1" summary="JScrollPane specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -918,13 +919,13 @@ preferred size will include the Insets. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JSplitPane">JSplitPane</a></h4> <h2><a id="JSplitPane">JSplitPane</a></h2>
<p> JSplitPane is a composite component that will contain a divider and <p> JSplitPane is a composite component that will contain a divider and
potentially two buttons, if setOneTouchExpandable(true) has been potentially two buttons, if setOneTouchExpandable(true) has been
invoked. The two buttons will be named: invoked. The two buttons will be named:
SplitPaneDivider.leftOneTouchButton and SplitPaneDivider.leftOneTouchButton and
SplitPaneDivider.rightOneTouchButton. </p> SplitPaneDivider.rightOneTouchButton. </p>
<h5>JSplitPane Specific Properties</h5> <h3>JSplitPane Specific Properties</h3>
<table border="1" summary="JSplitPane specific properties"> <table border="1" summary="JSplitPane specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -967,8 +968,8 @@ setOneTouchExpandable. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JSlider"></a>JSlider</h4> <h2><a id="JSlider"></a>JSlider</h2>
<h5>JSlider Specific Properties</h5> <h3>JSlider Specific Properties</h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JSlider specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JSlider specific properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -1027,8 +1028,8 @@ of the slider.<br>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JTabbedPane"></a>JTabbedPane</h4> <h2><a id="JTabbedPane"></a>JTabbedPane</h2>
<h5>JTabbedPane Specific Properties</h5> <h3>JTabbedPane Specific Properties</h3>
<table cellpadding="2" cellspacing="2" border="1" summary="JTabbedPane specific properties" <table cellpadding="2" cellspacing="2" border="1" summary="JTabbedPane specific properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -1089,10 +1090,10 @@ selected tab.<br>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JTable">JTable</a></h4> <h2><a id="JTable">JTable</a></h2>
<p> JTable sets the name of the renderer to Table.cellRenderer. <p> JTable sets the name of the renderer to Table.cellRenderer.
JTable supports the following properties: </p> JTable supports the following properties: </p>
<h5>JTable Specific Properties</h5> <h3>JTable Specific Properties</h3>
<table border="1" summary="JTable specific properties"> <table border="1" summary="JTable specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -1134,10 +1135,10 @@ renderer will only succeed if it is a Synth Border. </td>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="JTree">JTree</a></h4> <h2><a id="JTree">JTree</a></h2>
<p> JTree sets the name of the renderer to Tree.renderer, the name of <p> JTree sets the name of the renderer to Tree.renderer, the name of
the editor is Tree.cellEditor.</p> the editor is Tree.cellEditor.</p>
<h5>JTree Specific Properties</h5> <h3>JTree Specific Properties</h3>
<table border="1" summary="JTree specific properties"> <table border="1" summary="JTree specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -1217,11 +1218,11 @@ and <a href="synthFileFormat.html#e.graphicsUtils">binding it</a> to the tree.</
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h4><a id="JToggleButton">JToggleButton</a></h4> <h2><a id="JToggleButton">JToggleButton</a></h2>
<p> JToggleButton paints text using the TEXT_FOREGROUND ColorType. In <p> JToggleButton paints text using the TEXT_FOREGROUND ColorType. In
addition to the <a href="#buttonProperties">Button properties</a>, addition to the <a href="#buttonProperties">Button properties</a>,
JToggleButton supports the following property: </p> JToggleButton supports the following property: </p>
<h5>JToggleButton Specific Properties</h5> <h3>JToggleButton Specific Properties</h3>
<table border="1" summary="JToggleButton specific properties"> <table border="1" summary="JToggleButton specific properties">
<thead><tr> <thead><tr>
<th>Property</th> <th>Property</th>
@ -1239,7 +1240,7 @@ JToggleButton supports the following property: </p>
</tbody> </tbody>
</table> </table>
<br> <br>
<h4><a id="buttonProperties">Button Properties</a></h4> <h2><a id="buttonProperties">Button Properties</a></h2>
<p> Each of the Button classes (JButton, JCheckBox, JRadioButton, <p> Each of the Button classes (JButton, JCheckBox, JRadioButton,
JToggleButton and SynthArrowButton) support a similar set of properties. JToggleButton and SynthArrowButton) support a similar set of properties.
These properties are: </p> These properties are: </p>
@ -1292,8 +1293,8 @@ the button is in a pressed state and does not have a pressed icon. </td>
<p> <code>Prefix</code> is one of: Button, CheckBox, RadioButton or <p> <code>Prefix</code> is one of: Button, CheckBox, RadioButton or
JToggleButton.<br> JToggleButton.<br>
</p> </p>
<h4><a id="textProperties"></a>Text Properties<br> <h2><a id="textProperties"></a>Text Properties<br>
</h4> </h2>
<table cellpadding="2" cellspacing="2" border="1" summary="Text properties" <table cellpadding="2" cellspacing="2" border="1" summary="Text properties"
style="text-align: left; width: 100%;"> style="text-align: left; width: 100%;">
<tbody> <tbody>
@ -1341,5 +1342,6 @@ the blink rate fo the caret.<br>
<p><code>Prefix</code> is one of: EditorPane, FormattedTextField, <p><code>Prefix</code> is one of: EditorPane, FormattedTextField,
PasswordField, TextArea, TextField or TextPane.<br> PasswordField, TextArea, TextField or TextPane.<br>
</p> </p>
</main>
</body> </body>
</html> </html>

View file

@ -4,7 +4,7 @@
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Synth File Format</title> <title>Synth File Format</title>
<!-- <!--
Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it This code is free software; you can redistribute it and/or modify it
@ -45,7 +45,8 @@ div.example {
</head> </head>
<body> <body>
<h2><a id="file">File Format</a></h2> <main role="main">
<h1><a id="file">File Format</a></h1>
<p> <p>
Synth's file format (<a href="synth.dtd">dtd</a>) Synth's file format (<a href="synth.dtd">dtd</a>)
allows for specifying all the pieces allows for specifying all the pieces
@ -98,7 +99,7 @@ div.example {
Parsing will fail only if a necessary attribute is not Parsing will fail only if a necessary attribute is not
specified, or of the wrong type. specified, or of the wrong type.
<h3>The synth element</h3> <h2>The synth element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.synth">synth</a> ((<a href="#ee.beansPersistance">%beansPersistance;</a>) | <a href="#e.style">style</a> | <a href="#e.bind">bind</a> | <a href="#e.font">font</a> | <a href="#e.color">color</a> | &lt;!ELEMENT <a id="e.synth">synth</a> ((<a href="#ee.beansPersistance">%beansPersistance;</a>) | <a href="#e.style">style</a> | <a href="#e.bind">bind</a> | <a href="#e.font">font</a> | <a href="#e.color">color</a> |
@ -118,7 +119,7 @@ div.example {
</p> </p>
<h3>The style element</h3> <h2>The style element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.style">style</a> (<a href="#e.property">property</a> | <a href="#e.defaultsProperty">defaultsProperty</a> | <a href="#e.state">state</a> | <a href="#e.font">font</a> | <a href="#e.graphicsUtils">graphicsUtils</a> | &lt;!ELEMENT <a id="e.style">style</a> (<a href="#e.property">property</a> | <a href="#e.defaultsProperty">defaultsProperty</a> | <a href="#e.state">state</a> | <a href="#e.font">font</a> | <a href="#e.graphicsUtils">graphicsUtils</a> |
@ -172,7 +173,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The state element</h3> <h2>The state element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.state">state</a> (<a href="#e.color">color</a> | <a href="#e.font">font</a> | <a href="#e.painter">painter</a> | <a href="#e.imagePainter">imagePainter</a> | (<a href="#ee.beansPersistance">%beansPersistance;</a>) | &lt;!ELEMENT <a id="e.state">state</a> (<a href="#e.color">color</a> | <a href="#e.font">font</a> | <a href="#e.painter">painter</a> | <a href="#e.imagePainter">imagePainter</a> | (<a href="#ee.beansPersistance">%beansPersistance;</a>) |
@ -248,7 +249,7 @@ div.example {
chosen, otherwise if the state is SELECTED, but not does not chosen, otherwise if the state is SELECTED, but not does not
contain PRESSED, state <code>two</code> will be used. contain PRESSED, state <code>two</code> will be used.
<h3>The font element</h3> <h2>The font element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.font">font</a> EMPTY> &lt;!ELEMENT <a id="e.font">font</a> EMPTY>
@ -317,7 +318,7 @@ div.example {
</p> </p>
<h3>The color element</h3> <h2>The color element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.color">color</a> EMPTY> &lt;!ELEMENT <a id="e.color">color</a> EMPTY>
@ -394,7 +395,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The property element</h3> <h2>The property element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.property">property</a> EMPTY> &lt;!ELEMENT <a id="e.property">property</a> EMPTY>
@ -516,7 +517,7 @@ div.example {
<code>UIManager.get("Table.focusCellForeground")</code>. <code>UIManager.get("Table.focusCellForeground")</code>.
</p> </p>
<h3>The graphicsUtils element</h3> <h2>The graphicsUtils element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.graphicsUtils">graphicsUtils</a> EMPTY> &lt;!ELEMENT <a id="e.graphicsUtils">graphicsUtils</a> EMPTY>
@ -548,7 +549,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The insets element</h3> <h2>The insets element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.insets">insets</a> EMPTY> &lt;!ELEMENT <a id="e.insets">insets</a> EMPTY>
@ -592,7 +593,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The bind element</h3> <h2>The bind element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.bind">bind</a> EMPTY> &lt;!ELEMENT <a id="e.bind">bind</a> EMPTY>
@ -701,7 +702,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The painter element</h3> <h2>The painter element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.painter">painter</a> EMPTY> &lt;!ELEMENT <a id="e.painter">painter</a> EMPTY>
@ -815,7 +816,7 @@ div.example {
handle it. handle it.
</p> </p>
<h3>The imagePainter element</h3> <h2>The imagePainter element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.imagePainter">imagePainter</a> EMPTY> &lt;!ELEMENT <a id="e.imagePainter">imagePainter</a> EMPTY>
@ -911,7 +912,7 @@ div.example {
understand how identical painters are handled. understand how identical painters are handled.
<h3>The imageIcon element</h3> <h2>The imageIcon element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.imageIcon">imageIcon</a> EMPTY> &lt;!ELEMENT <a id="e.imageIcon">imageIcon</a> EMPTY>
@ -945,7 +946,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3>The opaque element</h3> <h2>The opaque element</h2>
<div class="dtd-fragment"> <div class="dtd-fragment">
<pre class="dtd-fragment"> <pre class="dtd-fragment">
&lt;!ELEMENT <a id="e.opaque">opaque</a> EMPTY> &lt;!ELEMENT <a id="e.opaque">opaque</a> EMPTY>
@ -976,7 +977,7 @@ div.example {
</pre> </pre>
</div> </div>
<h3><a id="ee.beansPersistance">The beansPersistance entity</a></h3> <h2><a id="ee.beansPersistance">The beansPersistance entity</a></h2>
<p> <p>
Beans persistance can be used to embed any Object. This is Beans persistance can be used to embed any Object. This is
typically used for embedding your own Painters, but can be used typically used for embedding your own Painters, but can be used
@ -986,7 +987,7 @@ div.example {
for details on beans persistance. for details on beans persistance.
<h3>Backing Style</h3> <h2>Backing Style</h2>
<p> <p>
In creating a Synth file it's good practice to create a backing In creating a Synth file it's good practice to create a backing
style that is used by all components. This will make sure that style that is used by all components. This will make sure that
@ -1008,6 +1009,6 @@ div.example {
&lt;/synth> &lt;/synth>
</pre> </pre>
</div> </div>
</main>
</body> </body>
</html> </html>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -171,7 +171,7 @@ import sun.swing.SwingAccessor;
* <td>input methods * <td>input methods
* <td>(generated here) * <td>(generated here)
* <tr> * <tr>
* <th scope="row" headers="stage">2. * <th scope="row">2.
* <td>focus manager * <td>focus manager
* <td> * <td>
* </tr> * </tr>

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -112,7 +112,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* &lt;title&gt;An example HTMLDocument&lt;/title&gt; * &lt;title&gt;An example HTMLDocument&lt;/title&gt;
* &lt;style type="text/css"&gt; * &lt;style type="text/css"&gt;
* div { background-color: silver; } * div { background-color: silver; }
* ul { color: red; } * ul { color: blue; }
* &lt;/style&gt; * &lt;/style&gt;
* &lt;/head&gt; * &lt;/head&gt;
* &lt;body&gt; * &lt;body&gt;
@ -204,7 +204,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* <!--insertAfterStart--> * <!--insertAfterStart-->
* <td style="white-space:nowrap"> * <td style="white-space:nowrap">
* <div style="background-color: silver;"> * <div style="background-color: silver;">
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* <p>Paragraph 1</p> * <p>Paragraph 1</p>
@ -216,14 +216,14 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* <div style="background-color: silver;"> * <div style="background-color: silver;">
* <p>Paragraph 1</p> * <p>Paragraph 1</p>
* <p>Paragraph 2</p> * <p>Paragraph 2</p>
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* </div> * </div>
* </td> * </td>
* <!--insertBeforeStart--> * <!--insertBeforeStart-->
* <td style="white-space:nowrap"> * <td style="white-space:nowrap">
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* <div style="background-color: silver;"> * <div style="background-color: silver;">
@ -237,21 +237,21 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* <p>Paragraph 1</p> * <p>Paragraph 1</p>
* <p>Paragraph 2</p> * <p>Paragraph 2</p>
* </div> * </div>
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* </td> * </td>
* <!--setInnerHTML--> * <!--setInnerHTML-->
* <td style="white-space:nowrap"> * <td style="white-space:nowrap">
* <div style="background-color: silver;"> * <div style="background-color: silver;">
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* </div> * </div>
* </td> * </td>
* <!--setOuterHTML--> * <!--setOuterHTML-->
* <td style="white-space:nowrap"> * <td style="white-space:nowrap">
* <ul style="color: red;"> * <ul style="color: blue;">
* <li>List Item</li> * <li>List Item</li>
* </ul> * </ul>
* </td> * </td>
@ -1001,16 +1001,16 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>setInnerHTML(elem, "&lt;ul&gt;&lt;li&gt;")</code> * <p>Invoking <code>setInnerHTML(elem, "&lt;ul&gt;&lt;li&gt;")</code>
* results in the following structure (new elements are <span * results in the following structure (new elements are <span
* style="color: red;">in red</span>).</p> * style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* | * |
* <b>&lt;div&gt;</b> * <b>&lt;div&gt;</b>
* \ * \
* <span style="color: red;">&lt;ul&gt;</span> * <span style="color: blue;">&lt;ul&gt;</span>
* \ * \
* <span style="color: red;">&lt;li&gt;</span> * <span style="color: blue;">&lt;li&gt;</span>
* </pre> * </pre>
* *
* <p>Parameter <code>elem</code> must not be a leaf element, * <p>Parameter <code>elem</code> must not be a leaf element,
@ -1085,14 +1085,14 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>setOuterHTML(elem, "&lt;ul&gt;&lt;li&gt;")</code> * <p>Invoking <code>setOuterHTML(elem, "&lt;ul&gt;&lt;li&gt;")</code>
* results in the following structure (new elements are <span * results in the following structure (new elements are <span
* style="color: red;">in red</span>).</p> * style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* | * |
* <span style="color: red;">&lt;ul&gt;</span> * <span style="color: blue;">&lt;ul&gt;</span>
* \ * \
* <span style="color: red;">&lt;li&gt;</span> * <span style="color: blue;">&lt;li&gt;</span>
* </pre> * </pre>
* *
* <p>If either <code>elem</code> or <code>htmlText</code> * <p>If either <code>elem</code> or <code>htmlText</code>
@ -1158,16 +1158,16 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>insertAfterStart(elem, * <p>Invoking <code>insertAfterStart(elem,
* "&lt;ul&gt;&lt;li&gt;")</code> results in the following structure * "&lt;ul&gt;&lt;li&gt;")</code> results in the following structure
* (new elements are <span style="color: red;">in red</span>).</p> * (new elements are <span style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* | * |
* <b>&lt;div&gt;</b> * <b>&lt;div&gt;</b>
* / | \ * / | \
* <span style="color: red;">&lt;ul&gt;</span> &lt;p&gt; &lt;p&gt; * <span style="color: blue;">&lt;ul&gt;</span> &lt;p&gt; &lt;p&gt;
* / * /
* <span style="color: red;">&lt;li&gt;</span> * <span style="color: blue;">&lt;li&gt;</span>
* </pre> * </pre>
* *
* <p>Unlike the <code>insertBeforeStart</code> method, new * <p>Unlike the <code>insertBeforeStart</code> method, new
@ -1231,16 +1231,16 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>insertBeforeEnd(elem, "&lt;ul&gt;&lt;li&gt;")</code> * <p>Invoking <code>insertBeforeEnd(elem, "&lt;ul&gt;&lt;li&gt;")</code>
* results in the following structure (new elements are <span * results in the following structure (new elements are <span
* style="color: red;">in red</span>).</p> * style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* | * |
* <b>&lt;div&gt;</b> * <b>&lt;div&gt;</b>
* / | \ * / | \
* &lt;p&gt; &lt;p&gt; <span style="color: red;">&lt;ul&gt;</span> * &lt;p&gt; &lt;p&gt; <span style="color: blue;">&lt;ul&gt;</span>
* \ * \
* <span style="color: red;">&lt;li&gt;</span> * <span style="color: blue;">&lt;li&gt;</span>
* </pre> * </pre>
* *
* <p>Unlike the <code>insertAfterEnd</code> method, new elements * <p>Unlike the <code>insertAfterEnd</code> method, new elements
@ -1301,14 +1301,14 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>insertBeforeStart(elem, * <p>Invoking <code>insertBeforeStart(elem,
* "&lt;ul&gt;&lt;li&gt;")</code> results in the following structure * "&lt;ul&gt;&lt;li&gt;")</code> results in the following structure
* (new elements are <span style="color: red;">in red</span>).</p> * (new elements are <span style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* / \ * / \
* <span style="color: red;">&lt;ul&gt;</span> <b>&lt;div&gt;</b> * <span style="color: blue;">&lt;ul&gt;</span> <b>&lt;div&gt;</b>
* / / \ * / / \
* <span style="color: red;">&lt;li&gt;</span> &lt;p&gt; &lt;p&gt; * <span style="color: blue;">&lt;li&gt;</span> &lt;p&gt; &lt;p&gt;
* </pre> * </pre>
* *
* <p>Unlike the <code>insertAfterStart</code> method, new * <p>Unlike the <code>insertAfterStart</code> method, new
@ -1362,14 +1362,14 @@ public class HTMLDocument extends DefaultStyledDocument {
* *
* <p>Invoking <code>insertAfterEnd(elem, "&lt;ul&gt;&lt;li&gt;")</code> * <p>Invoking <code>insertAfterEnd(elem, "&lt;ul&gt;&lt;li&gt;")</code>
* results in the following structure (new elements are <span * results in the following structure (new elements are <span
* style="color: red;">in red</span>).</p> * style="color: blue;">in blue</span>).</p>
* *
* <pre> * <pre>
* &lt;body&gt; * &lt;body&gt;
* / \ * / \
* <b>&lt;div&gt;</b> <span style="color: red;">&lt;ul&gt;</span> * <b>&lt;div&gt;</b> <span style="color: blue;">&lt;ul&gt;</span>
* / \ \ * / \ \
* &lt;p&gt; &lt;p&gt; <span style="color: red;">&lt;li&gt;</span> * &lt;p&gt; &lt;p&gt; <span style="color: blue;">&lt;li&gt;</span>
* </pre> * </pre>
* *
* <p>Unlike the <code>insertBeforeEnd</code> method, new elements * <p>Unlike the <code>insertBeforeEnd</code> method, new elements