Skip to content

Commit 7ed591c

Browse files
committed
8260314: Replace border="1" on tables with CSS
Reviewed-by: serb
1 parent e696baa commit 7ed591c

File tree

6 files changed

+35
-36
lines changed

6 files changed

+35
-36
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1>AWT Desktop Properties</h1>
5353
not support them. In the event that a desktop property is
5454
unavailable for any reason, the implementation will return
5555
<code>null</code>.
56-
<table border=1>
56+
<table class="striped">
5757
<caption>The following table summarizes the desktop properties documented
5858
here, and their value types.</caption>
5959
<thead>

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>The AWT Modality</title>
66
<style>
77
td {text-align: center;}
8-
tr {text-align: center;}
98
</style>
109
</head>
1110
<!--
@@ -207,7 +206,7 @@ <h2>Show/hide blocking</h2>
207206
Showing the toolkit-modal dialog: "M"<br>
208207
M remains unblocked.
209208

210-
<table border="1">
209+
<table class="striped">
211210
<caption>The Standard Blocking Matrix</caption>
212211
<tbody><tr>
213212
<th scope="col">current/shown</th>

src/java.desktop/share/classes/javax/imageio/metadata/doc-files/gif_metadata.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ <h2>GIF Image Metadata Format Specification</h2>
345345

346346
<p>
347347
<a id="mapping"></a>
348-
<table border=1>
348+
<table class="striped">
349349
<caption><b>Mapping of Standard to GIF Native Stream Metadata</b></caption>
350350
<thead>
351351
<tr>
@@ -408,7 +408,7 @@ <h2>GIF Image Metadata Format Specification</h2>
408408
</tbody>
409409
</table>
410410

411-
<table border=1>
411+
<table class="striped">
412412
<caption><b>Mapping of Standard to GIF Native Image Metadata</b></caption>
413413
<thead>
414414
<tr>

src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ <h3><a id="MetadataIssuesRead">Metadata Issues</a></h3>
227227
<h4><a id="MapNativeStandard"></a>
228228
Mapping of TIFF Native Image Metadata to the Standard Metadata Format</h4>
229229

230-
<table border="1">
230+
<table class="striped">
231231
<caption>The derivation of standard metadata format
232232
<a href="standard_metadata.html">javax_imageio_1.0</a>
233233
elements from <a href="#ImageMetadata">TIFF native image metadata</a> is given
@@ -511,7 +511,7 @@ <h3><a id="Compression">Compression</a></h3>
511511
<code>MODE_EXPLICIT</code>. The set of innately
512512
supported compression types is listed in the following table:
513513

514-
<table border=1>
514+
<table class="striped">
515515
<caption><b>Supported Compression Types</b></caption>
516516
<thead>
517517
<tr>
@@ -757,7 +757,7 @@ <h4><a id="MapStandardNative"></a>
757757
Mapping of the Standard Metadata Format to TIFF Native Image Metadata</h4>
758758

759759

760-
<table border="1">
760+
<table class="striped">
761761
<caption>The derivation of <a href="#ImageMetadata">TIFF native image metadata</a>
762762
elements from the standard metadata format
763763
<a href="standard_metadata.html">javax_imageio_1.0</a> is

src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/componentProperties.html

+27-27
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h2>ArrowButton</h2>
5454
In addition to the <a
5555
href="#buttonProperties">Button properties</a>, ArrowButton supports
5656
the following properties: </p>
57-
<table border="1">
57+
<table class="striped">
5858
<caption>ArrowButton Specific Properties</caption>
5959
<thead><tr>
6060
<th scope="col">Property</th>
@@ -76,7 +76,7 @@ <h2><a id="JButton">JButton</a></h2>
7676
<p> JButton paints text using the TEXT_FOREGROUND ColorType. In addition
7777
to the <a href="#buttonProperties">Button properties</a>, JButton
7878
supports the following property: </p>
79-
<table border="1">
79+
<table class="striped">
8080
<caption>JButton Specific Properties</caption>
8181
<thead><tr>
8282
<th scope="col">Property</th>
@@ -99,7 +99,7 @@ <h2><a id="JCheckBox">JCheckBox</a></h2>
9999
<p> JCheckBox paints text using the TEXT_FOREGROUND ColorType. In
100100
addition to the <a href="#buttonProperties">Button properties</a>,
101101
JCheckBox supports the following property: </p>
102-
<table border="1">
102+
<table class="striped">
103103
<caption>JCheckBox Specific Properties</caption>
104104
<thead><tr>
105105
<th scope="col">Property</th>
@@ -120,7 +120,7 @@ <h2><a id="JCheckBox">JCheckBox</a></h2>
120120
<h2><a id="JComboBox">JComboBox</a></h2>
121121
<p> JComboBox is a composite component that consists of the following
122122
child Components: </p>
123-
<table border="1">
123+
<table class="striped">
124124
<caption>JComboBox child components</caption>
125125
<thead><tr>
126126
<th scope="col">Name</th>
@@ -168,7 +168,7 @@ <h2><a id="JComboBox">JComboBox</a></h2>
168168
</table>
169169

170170
<p>&nbsp;</p>
171-
<table border="1">
171+
<table class="striped">
172172
<caption>JComboBox Specific Properties</caption>
173173
<thead><tr>
174174
<th scope="col">Property</th>
@@ -188,7 +188,7 @@ <h2><a id="JComboBox">JComboBox</a></h2>
188188
</table>
189189
<br>
190190
<h2>JFileChooser</h2>
191-
<table border="1" style="text-align: left; width: 100%;">
191+
<table class="striped" style="text-align: left; width: 100%;">
192192
<caption>JFileChooser Specific Properties</caption>
193193
<thead>
194194
<tr>
@@ -348,7 +348,7 @@ <h2>JFileChooser</h2>
348348
</table>
349349
<br>
350350
<h2><a id="JInternalFrame"></a>JInternalFrame</h2>
351-
<table border="1" style="text-align: left; width: 100%;">
351+
<table class="striped" style="text-align: left; width: 100%;">
352352
<caption>JInternalFrame Specific Properties</caption>
353353
<thead><tr>
354354
<th scope="col" style="vertical-align: top; text-align: center;">Property<br>
@@ -380,7 +380,7 @@ <h2><a id="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h2>
380380
<p>JInternalFrameTitlePane is the control bar located at the top of the
381381
internal frame similar to that found in a frame.<br>
382382
</p>
383-
<table border="1" style="text-align: left; width: 100%;">
383+
<table class="striped" style="text-align: left; width: 100%;">
384384
<caption>JInternalFrameTitlePane Specific Properties</caption>
385385
<thead><tr>
386386
<th scope="col" style="vertical-align: top; text-align: center;">Property<br>
@@ -478,7 +478,7 @@ <h2><a id="JInternalFrameTitlePane"></a>JInternalFrameTitlePane</h2>
478478
<h2><a id="JList">JList</a></h2>
479479
<p> JList's sets the name of the renderer to List.renderer. JList
480480
supports the following properties: </p>
481-
<table border="1">
481+
<table class="striped">
482482
<caption>JList Specific Properties</caption>
483483
<thead><tr>
484484
<th scope="col">Property</th>
@@ -522,7 +522,7 @@ <h2><a id="menuProperties">Menu Properties</a></h2>
522522
MENU_ITEM_ACCELERATOR is used for painting the accelerator. Both Regions
523523
paint text using the TEXT_FOREGROUND ColorType. The following set of
524524
properties are supported: </p>
525-
<table border="1">
525+
<table class="striped">
526526
<caption>Menu classes common properties</caption>
527527
<thead><tr>
528528
<th scope="col">Property</th>
@@ -577,7 +577,7 @@ <h2><a id="menuProperties">Menu Properties</a></h2>
577577
<p> <code>Prefix</code> is one of: CheckBoxMenuItem, Menu, MenuItem, or
578578
RadioButtonMenuItem. </p>
579579
<p> JMenu also supports the following properties: </p>
580-
<table border="1">
580+
<table class="striped">
581581
<caption>JMenu specific properties</caption>
582582
<thead><tr>
583583
<th scope="col">Property</th>
@@ -606,7 +606,7 @@ <h2><a id="JOptionPane">JOptionPane</a></h2>
606606
components, they are: OptionPane.button, OptionPane.label,
607607
OptionPane.comboBox, OptionPane.scrollPane, OptionPane.list,
608608
OptionPane.textField, OptionPane.iconLabel. </p>
609-
<table border="1">
609+
<table class="striped">
610610
<caption>JOptionPane Specific Properties</caption>
611611
<thead><tr>
612612
<th scope="col">Property</th>
@@ -719,7 +719,7 @@ <h2><a id="JOptionPane">JOptionPane</a></h2>
719719
<br>
720720
<h2><a id="JProgressBar"></a>JProgressBar<br>
721721
</h2>
722-
<table border="1" style="text-align: left; width: 100%;">
722+
<table class="striped" style="text-align: left; width: 100%;">
723723
<caption>JProgressBar Specific Properties</caption>
724724
<thead><tr>
725725
<th scope="col" style="vertical-align: top; text-align: center;">Property</th>
@@ -759,7 +759,7 @@ <h2><a id="JRadioButton">JRadioButton</a></h2>
759759
<p> JRadioButton paints text using the TEXT_FOREGROUND ColorType. In
760760
addition to the <a href="#buttonProperties">Button properties</a>,
761761
JRadioButton supports the following property: </p>
762-
<table border="1">
762+
<table class="striped">
763763
<caption>JRadioButton Specific Properties</caption>
764764
<thead><tr>
765765
<th scope="col">Property</th>
@@ -780,7 +780,7 @@ <h2><a id="JRadioButton">JRadioButton</a></h2>
780780
<h2><a id="JScrollBar">JScrollBar</a></h2>
781781
<p> JScrollBar is a composite component that consists of the following
782782
child Components: </p>
783-
<table border="1">
783+
<table class="striped">
784784
<caption>JScrollBar child components</caption>
785785
<thead><tr>
786786
<th scope="col">Name</th>
@@ -797,7 +797,7 @@ <h2><a id="JScrollBar">JScrollBar</a></h2>
797797
</table>
798798

799799
<p>&nbsp;</p>
800-
<table border="1">
800+
<table class="striped">
801801
<caption>JScrollBar Specific Properties</caption>
802802
<thead><tr>
803803
<th scope="col">Property</th>
@@ -852,7 +852,7 @@ <h2><a id="JScrollBar">JScrollBar</a></h2>
852852
<h2><a id="Separator">Separators</a></h2>
853853
<p> All of the separator classes, JSeparator, JPopupMenu.Separator and
854854
JToolBar.Separator use the same property: </p>
855-
<table border="1">
855+
<table class="striped">
856856
<caption>Separator classes common properties</caption>
857857
<thead><tr>
858858
<th scope="col">Property</th>
@@ -872,7 +872,7 @@ <h2><a id="Separator">Separators</a></h2>
872872
</tbody>
873873
</table>
874874
<p> JToolBar.Separator also supports the following property: </p>
875-
<table border="1">
875+
<table class="striped">
876876
<caption>JToolBar.Separator specific properties</caption>
877877
<thead><tr>
878878
<th scope="col">Property</th>
@@ -906,7 +906,7 @@ <h2><a id="JScrollPane">JScrollPane</a></h2>
906906
<code>paintViewportBorder</code> is called to paint the
907907
<code>Viewport</code>s border.
908908
</p>
909-
<table border="1">
909+
<table class="striped">
910910
<caption>JScrollPane Specific Properties</caption>
911911
<thead><tr>
912912
<th scope="col">Property</th>
@@ -930,7 +930,7 @@ <h2><a id="JSplitPane">JSplitPane</a></h2>
930930
invoked. The two buttons will be named:
931931
SplitPaneDivider.leftOneTouchButton and
932932
SplitPaneDivider.rightOneTouchButton. </p>
933-
<table border="1">
933+
<table class="striped">
934934
<caption>JSplitPane Specific Properties</caption>
935935
<thead><tr>
936936
<th scope="col">Property</th>
@@ -974,7 +974,7 @@ <h2><a id="JSplitPane">JSplitPane</a></h2>
974974
</table>
975975
<br>
976976
<h2><a id="JSlider"></a>JSlider</h2>
977-
<table border="1" style="text-align: left; width: 100%;">
977+
<table class="striped" style="text-align: left; width: 100%;">
978978
<caption>JSlider Specific Properties</caption>
979979
<thead><tr>
980980
<th scope="col" style="vertical-align: top; text-align: center;">Property<br>
@@ -1033,7 +1033,7 @@ <h2><a id="JSlider"></a>JSlider</h2>
10331033
</table>
10341034
<br>
10351035
<h2><a id="JTabbedPane"></a>JTabbedPane</h2>
1036-
<table border="1" style="text-align: left; width: 100%;">
1036+
<table class="striped" style="text-align: left; width: 100%;">
10371037
<caption>JTabbedPane Specific Properties</caption>
10381038
<thead><tr>
10391039
<th scope="col" style="vertical-align: top; text-align: center;">Property</th>
@@ -1096,7 +1096,7 @@ <h2><a id="JTabbedPane"></a>JTabbedPane</h2>
10961096
<h2><a id="JTable">JTable</a></h2>
10971097
<p> JTable sets the name of the renderer to Table.cellRenderer.
10981098
JTable supports the following properties: </p>
1099-
<table border="1">
1099+
<table class="striped">
11001100
<caption>JTable Specific Properties</caption>
11011101
<thead><tr>
11021102
<th scope="col">Property</th>
@@ -1141,7 +1141,7 @@ <h2><a id="JTable">JTable</a></h2>
11411141
<h2><a id="JTree">JTree</a></h2>
11421142
<p> JTree sets the name of the renderer to Tree.renderer, the name of
11431143
the editor is Tree.cellEditor.</p>
1144-
<table border="1">
1144+
<table class="striped">
11451145
<caption>JTree Specific Properties</caption>
11461146
<thead><tr>
11471147
<th scope="col">Property</th>
@@ -1225,7 +1225,7 @@ <h2><a id="JToggleButton">JToggleButton</a></h2>
12251225
<p> JToggleButton paints text using the TEXT_FOREGROUND ColorType. In
12261226
addition to the <a href="#buttonProperties">Button properties</a>,
12271227
JToggleButton supports the following property: </p>
1228-
<table border="1">
1228+
<table class="striped">
12291229
<caption>JToggleButton Specific Properties</caption>
12301230
<thead><tr>
12311231
<th scope="col">Property</th>
@@ -1247,7 +1247,7 @@ <h2><a id="buttonProperties">Button Properties</a></h2>
12471247
<p> Each of the Button classes (JButton, JCheckBox, JRadioButton,
12481248
JToggleButton and SynthArrowButton) support a similar set of properties.
12491249
These properties are: </p>
1250-
<table border="1">
1250+
<table class="striped">
12511251
<caption>Button classes common properties</caption>
12521252
<thead><tr>
12531253
<th scope="col">Property</th>
@@ -1299,7 +1299,7 @@ <h2><a id="buttonProperties">Button Properties</a></h2>
12991299
</p>
13001300
<h2><a id="textProperties"></a>Text Properties<br>
13011301
</h2>
1302-
<table border="1" style="text-align: left; width: 100%;">
1302+
<table class="striped" style="text-align: left; width: 100%;">
13031303
<caption>Text classes common properties</caption>
13041304
<thead><tr>
13051305
<th scope="col" style="vertical-align: top; text-align: center;">Property</th>

src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ <h2>The painter element</h2>
776776
The following outlines which painter will be used for what
777777
SynthPainter method:
778778
</p>
779-
<table border=1>
779+
<table class="striped">
780780
<caption>Painters for SynthPainter methods</caption>
781781
<thead>
782782
<tr>

0 commit comments

Comments
 (0)