8284189: Replace usages of 'a the' in java.desktop
Reviewed-by: jdv, prr, dmarkov
This commit is contained in:
parent
e955cacb91
commit
ec4fb47b90
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
@ -438,7 +438,7 @@ ProgressBarDemo.stop_button=Stop Loading Text
|
||||
ProgressBarDemo.accessible_text_loading_progress=Text loading progress
|
||||
ProgressBarDemo.accessible_text_area_name=Text progressively being loaded in
|
||||
|
||||
ProgressBarDemo.accessible_text_area_description=This JTextArea is being filled with text from a buffer progressively a character at a time while the progress bar a the bottom of the window shows the loading progress
|
||||
ProgressBarDemo.accessible_text_area_description=This JTextArea is being filled with text from a buffer progressively a character at a time while the progress bar at the bottom of the window shows the loading progress
|
||||
|
||||
ProgressBarDemo.text=\
|
||||
The saying goes: if an infinite number of monkeys typed on an infinite number of typewriters, eventually \n\
|
||||
@ -704,4 +704,3 @@ TreeDemo.accessible_description=This demo shows shows a sample usage of a JTree
|
||||
TreeDemo.tooltip=JTree demo
|
||||
TreeDemo.name=Tree Demo
|
||||
TreeDemo.music=Music
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -40,7 +40,7 @@
|
||||
|
||||
|
||||
/**
|
||||
* A a UI around the JDBCAdaptor, allowing database data to be interactively
|
||||
* A UI around the JDBCAdaptor, allowing database data to be interactively
|
||||
* fetched, sorted and displayed using Swing.
|
||||
*
|
||||
* NOTE: This example uses a modal dialog via the static convenience methods in
|
||||
|
@ -1002,7 +1002,7 @@ public class TIFFIFD extends TIFFDirectory {
|
||||
// The IFD entry value is a pointer to the actual field value.
|
||||
long offset = stream.readUnsignedInt();
|
||||
|
||||
// Check whether the the field value is within the stream.
|
||||
// Check whether the field value is within the stream.
|
||||
if (haveStreamLength && offset + size > streamLength) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -214,7 +214,7 @@ public class CheckboxMenuItem extends MenuItem implements ItemSelectable, Access
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the an array (length 1) containing the checkbox menu item
|
||||
* Returns the array (length 1) containing the checkbox menu item
|
||||
* label or null if the checkbox is not selected.
|
||||
* @see ItemSelectable
|
||||
*/
|
||||
|
@ -468,7 +468,7 @@ public class DefaultKeyboardFocusManager extends KeyboardFocusManager {
|
||||
// in the Window.
|
||||
//
|
||||
// * If we're in SendMessage, then this is a synthetic
|
||||
// WINDOW_GAINED_FOCUS message which was generated by a
|
||||
// WINDOW_GAINED_FOCUS message which was generated by
|
||||
// the FOCUS_GAINED handler. Allow the Component to
|
||||
// which the FOCUS_GAINED message was targeted to
|
||||
// receive the focus.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,9 +24,6 @@
|
||||
*/
|
||||
package java.awt;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import java.util.*;
|
||||
import java.awt.image.ImageObserver;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
|
||||
@ -714,9 +711,9 @@ public abstract class Graphics {
|
||||
* 1 ≤ <i>i</i> ≤ {@code nPoints}.
|
||||
* The figure is automatically closed by drawing a line connecting
|
||||
* the final point to the first point, if those points are different.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#fillPolygon
|
||||
* @see java.awt.Graphics#drawPolyline
|
||||
*/
|
||||
@ -749,9 +746,9 @@ public abstract class Graphics {
|
||||
* <p>
|
||||
* The area inside the polygon is defined using an
|
||||
* even-odd fill rule, also known as the alternating rule.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
*/
|
||||
public abstract void fillPolygon(int[] xPoints, int[] yPoints,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -58,7 +58,7 @@ import sun.java2d.cmm.ProfileDeferralInfo;
|
||||
* To transform from a device profile color space to the CIEXYZ Profile
|
||||
* Connection Space, each device color component is first linearized by a lookup
|
||||
* through the corresponding tone reproduction curve (TRC). The resulting linear
|
||||
* RGB components are converted to the CIEXYZ PCS using a a 3x3 matrix
|
||||
* RGB components are converted to the CIEXYZ PCS using a 3x3 matrix
|
||||
* constructed from the RGB colorants.
|
||||
* <pre>
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -229,7 +229,7 @@ public final class DropTargetContext implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns a the currently available DataFlavors
|
||||
* This method returns the currently available DataFlavors
|
||||
* of the {@code Transferable} operand
|
||||
* as a {@code java.util.List}.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,8 @@
|
||||
|
||||
package java.awt.image;
|
||||
|
||||
import static sun.java2d.StateTrackable.State.*;
|
||||
import static sun.java2d.StateTrackable.State.STABLE;
|
||||
import static sun.java2d.StateTrackable.State.UNTRACKABLE;
|
||||
|
||||
/**
|
||||
* This class extends {@code DataBuffer} and stores data internally as bytes.
|
||||
@ -83,7 +84,7 @@ public final class DataBufferByte extends DataBuffer
|
||||
* banks all of which are the specified size.
|
||||
*
|
||||
* @param size The size of the banks in the {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the a {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the {@code DataBuffer}.
|
||||
*/
|
||||
public DataBufferByte(int size, int numBanks) {
|
||||
super(STABLE, TYPE_BYTE, size, numBanks);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,8 @@
|
||||
|
||||
package java.awt.image;
|
||||
|
||||
import static sun.java2d.StateTrackable.State.*;
|
||||
import static sun.java2d.StateTrackable.State.STABLE;
|
||||
import static sun.java2d.StateTrackable.State.UNTRACKABLE;
|
||||
|
||||
/**
|
||||
* This class extends {@code DataBuffer} and stores data internally
|
||||
@ -82,7 +83,7 @@ public final class DataBufferInt extends DataBuffer
|
||||
* banks, all of which are the specified size.
|
||||
*
|
||||
* @param size The size of the banks in the {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the a {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the {@code DataBuffer}.
|
||||
*/
|
||||
public DataBufferInt(int size, int numBanks) {
|
||||
super(STABLE, TYPE_INT, size, numBanks);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,8 @@
|
||||
|
||||
package java.awt.image;
|
||||
|
||||
import static sun.java2d.StateTrackable.State.*;
|
||||
import static sun.java2d.StateTrackable.State.STABLE;
|
||||
import static sun.java2d.StateTrackable.State.UNTRACKABLE;
|
||||
|
||||
/**
|
||||
* This class extends {@code DataBuffer} and stores data internally as shorts.
|
||||
@ -81,7 +82,7 @@ public final class DataBufferShort extends DataBuffer
|
||||
* banks all of which are the specified size.
|
||||
*
|
||||
* @param size The size of the banks in the {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the a {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the {@code DataBuffer}.
|
||||
*/
|
||||
public DataBufferShort(int size, int numBanks) {
|
||||
super(STABLE, TYPE_SHORT,size,numBanks);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,8 @@
|
||||
|
||||
package java.awt.image;
|
||||
|
||||
import static sun.java2d.StateTrackable.State.*;
|
||||
import static sun.java2d.StateTrackable.State.STABLE;
|
||||
import static sun.java2d.StateTrackable.State.UNTRACKABLE;
|
||||
|
||||
/**
|
||||
* This class extends {@code DataBuffer} and stores data internally as
|
||||
@ -83,7 +84,7 @@ public final class DataBufferUShort extends DataBuffer
|
||||
* banks, all of which are the specified size.
|
||||
*
|
||||
* @param size The size of the banks in the {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the a {@code DataBuffer}.
|
||||
* @param numBanks The number of banks in the {@code DataBuffer}.
|
||||
*/
|
||||
public DataBufferUShort(int size, int numBanks) {
|
||||
super(STABLE, TYPE_USHORT, size, numBanks);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1471,7 +1471,7 @@ public final class ImageIO {
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes an image using the an arbitrary {@code ImageWriter}
|
||||
* Writes an image using an arbitrary {@code ImageWriter}
|
||||
* that supports the given format to an
|
||||
* {@code ImageOutputStream}. The image is written to the
|
||||
* {@code ImageOutputStream} starting at the current stream
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -234,7 +234,7 @@ public class JFileChooser extends JComponent implements Accessible {
|
||||
public static final String ACCESSORY_CHANGED_PROPERTY = "AccessoryChangedProperty";
|
||||
|
||||
/**
|
||||
* Identifies whether a the AcceptAllFileFilter is used or not.
|
||||
* Identifies whether the AcceptAllFileFilter is used or not.
|
||||
*/
|
||||
public static final String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY = "acceptAllFileFilterUsedChanged";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -593,7 +593,7 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
|
||||
*
|
||||
* @param key the property value to check
|
||||
* @param message the IllegalArgumentException detail message
|
||||
* @return the key value if {@code key} is a a legal value for the
|
||||
* @return the key value if {@code key} is a legal value for the
|
||||
* horizontalAlignment properties
|
||||
* @throws IllegalArgumentException if key isn't LEFT, CENTER, RIGHT,
|
||||
* LEADING or TRAILING.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,8 +24,8 @@
|
||||
*/
|
||||
package javax.swing.event;
|
||||
|
||||
import javax.swing.undo.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.Element;
|
||||
|
||||
/**
|
||||
* Interface for document change notifications. This provides
|
||||
@ -82,14 +82,14 @@ public interface DocumentEvent {
|
||||
* the mutation) need to have ElementChange records.
|
||||
* The changes made available need not be recursive.
|
||||
* <p>
|
||||
* For example, if the an element is removed from it's
|
||||
* For example, if an element is removed from its
|
||||
* parent, this method should report that the parent
|
||||
* changed and provide an ElementChange implementation
|
||||
* that describes the change to the parent. If the
|
||||
* child element removed had children, these elements
|
||||
* do not need to be reported as removed.
|
||||
* <p>
|
||||
* If an child element is insert into a parent element,
|
||||
* If a child element is inserted into a parent element,
|
||||
* the parent element should report a change. If the
|
||||
* child element also had elements inserted into it
|
||||
* (grandchildren to the parent) these elements need
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,9 +24,8 @@
|
||||
*/
|
||||
package javax.swing.plaf.basic;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
@ -37,6 +36,11 @@ import java.awt.Rectangle;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.InputEvent;
|
||||
|
||||
import javax.swing.AbstractButton;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
import sun.swing.SwingUtilities2;
|
||||
|
||||
|
||||
@ -431,7 +435,7 @@ public class BasicGraphicsUtils
|
||||
* @param c the component that will display the string, may be null
|
||||
* @param g the graphics context, must not be null
|
||||
* @param string the string to display, may be null
|
||||
* @param underlinedIndex index of a a char value (Unicode code unit)
|
||||
* @param underlinedIndex index of a char value (Unicode code unit)
|
||||
* in the string to underline
|
||||
* @param x the x coordinate to draw the text at
|
||||
* @param y the y coordinate to draw the text at
|
||||
|
@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8"/>
|
||||
<title>Synth File Format</title>
|
||||
<!--
|
||||
Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
@ -218,7 +218,7 @@ div.example {
|
||||
</p>
|
||||
<p>
|
||||
The following example creates a state with a red background that
|
||||
will be used when the component is in an a selected and pressed state:
|
||||
will be used when the component is in a selected and pressed state:
|
||||
</p>
|
||||
<div class="example">
|
||||
<pre>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,7 +24,8 @@
|
||||
*/
|
||||
package javax.swing.text;
|
||||
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.event.DocumentListener;
|
||||
import javax.swing.event.UndoableEditListener;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@ -174,7 +175,7 @@ import javax.swing.event.*;
|
||||
* <p>In the Swing text API's document model, the interface Element defines a structural piece of a Document,
|
||||
* like a paragraph, a line of text, or a list item in an HTML document.
|
||||
* <p>Every Element is either a <i>branch</i> or a <i>leaf</i>. If an element is a branch,
|
||||
* the <code>isLeaf()</code> method returns false. If an element is a a leaf, <code>isLeaf()</code> returns true.
|
||||
* the <code>isLeaf()</code> method returns false. If an element is a leaf, <code>isLeaf()</code> returns true.
|
||||
* <p>Branches can have any number of children. Leaves do not have children.
|
||||
* To determine how many children a branch has, you can call <code>getElementCount()</code>.
|
||||
* To determine the parent of an Element, you can call <code>getParentElement()</code>.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,9 +24,15 @@
|
||||
*/
|
||||
package javax.swing.text;
|
||||
|
||||
import java.lang.reflect.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.DecimalFormatSymbols;
|
||||
import java.text.Format;
|
||||
import java.text.NumberFormat;
|
||||
import java.text.ParseException;
|
||||
import java.util.Map;
|
||||
|
||||
import sun.reflect.misc.ReflectUtil;
|
||||
import sun.swing.SwingUtilities2;
|
||||
|
||||
@ -97,7 +103,7 @@ public class NumberFormatter extends InternationalFormatter {
|
||||
private String specialChars;
|
||||
|
||||
/**
|
||||
* Creates a <code>NumberFormatter</code> with the a default
|
||||
* Creates a <code>NumberFormatter</code> with the default
|
||||
* <code>NumberFormat</code> instance obtained from
|
||||
* <code>NumberFormat.getNumberInstance()</code>.
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,18 +24,27 @@
|
||||
*/
|
||||
package javax.swing.text;
|
||||
|
||||
import java.util.*;
|
||||
import java.awt.*;
|
||||
import java.awt.Container;
|
||||
import java.awt.Font;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.font.LineBreakMeasurer;
|
||||
import java.awt.font.TextAttribute;
|
||||
import java.awt.font.TextLayout;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.text.BreakIterator;
|
||||
import java.awt.font.*;
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.util.HashSet;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
|
||||
import sun.font.BidiUtils;
|
||||
|
||||
/**
|
||||
* A flow strategy that uses java.awt.font.LineBreakMeasureer to
|
||||
* A flow strategy that uses java.awt.font.LineBreakMeasurer to
|
||||
* produce java.awt.font.TextLayout for i18n capable rendering.
|
||||
* If the child view being placed into the flow is of type
|
||||
* GlyphView and can be rendered by TextLayout, a GlyphPainter
|
||||
@ -98,9 +107,9 @@ class TextLayoutStrategy extends FlowView.FlowStrategy {
|
||||
}
|
||||
|
||||
/**
|
||||
* Does a a full layout on the given View. This causes all of
|
||||
* Does a full layout on the given View. This causes all of
|
||||
* the rows (child views) to be rebuilt to match the given
|
||||
* constraints for each row. This is called by a FlowView.layout
|
||||
* constraints for each row. This is called by FlowView.layout
|
||||
* to update the child views in the flow.
|
||||
*
|
||||
* @param fv the view to reflow
|
||||
@ -119,7 +128,7 @@ class TextLayoutStrategy extends FlowView.FlowStrategy {
|
||||
* @param rowIndex the row to fill in with views. This is assumed
|
||||
* to be empty on entry.
|
||||
* @param p0 The current position in the children of
|
||||
* this views element from which to start.
|
||||
* this view element from which to start.
|
||||
* @return the position to start the next row
|
||||
*/
|
||||
protected int layoutRow(FlowView fv, int rowIndex, int p0) {
|
||||
@ -171,7 +180,7 @@ class TextLayoutStrategy extends FlowView.FlowStrategy {
|
||||
*
|
||||
* @param fv the view holding the flow
|
||||
* @param startOffset the start location for the view being created
|
||||
* @param spanLeft the about of span left to fill in the row
|
||||
* @param spanLeft the amount of span left to fill in the row
|
||||
* @param rowIndex the row the view will be placed into
|
||||
*/
|
||||
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,14 +24,58 @@
|
||||
*/
|
||||
package javax.swing.text.html;
|
||||
|
||||
import java.net.*;
|
||||
import java.io.*;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.text.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.Point;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.ItemListener;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.BitSet;
|
||||
|
||||
import javax.swing.AbstractListModel;
|
||||
import javax.swing.Box;
|
||||
import javax.swing.ButtonModel;
|
||||
import javax.swing.ComboBoxModel;
|
||||
import javax.swing.DefaultButtonModel;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JCheckBox;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JEditorPane;
|
||||
import javax.swing.JFileChooser;
|
||||
import javax.swing.JList;
|
||||
import javax.swing.JPasswordField;
|
||||
import javax.swing.JRadioButton;
|
||||
import javax.swing.JScrollPane;
|
||||
import javax.swing.JTextArea;
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.JToggleButton;
|
||||
import javax.swing.ListModel;
|
||||
import javax.swing.ListSelectionModel;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.event.ChangeListener;
|
||||
import javax.swing.event.DocumentListener;
|
||||
import javax.swing.event.HyperlinkEvent;
|
||||
import javax.swing.event.ListDataListener;
|
||||
import javax.swing.text.AbstractDocument;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.ComponentView;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.ElementIterator;
|
||||
import javax.swing.text.PlainDocument;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.View;
|
||||
|
||||
/**
|
||||
* Component decorator that implements the view interface
|
||||
@ -617,12 +661,12 @@ public class FormView extends ComponentView implements ActionListener {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* The following methods provide functionality required to
|
||||
* iterate over a the elements of the form and in the case
|
||||
* iterate over the elements of the form and in the case
|
||||
* of a form submission, extract the data from each model
|
||||
* that is associated with each form element, and in the
|
||||
* case of reset, reinitialize the each model to its
|
||||
* case of reset, reinitialize each model to its
|
||||
* initial state.
|
||||
*/
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,15 +24,24 @@
|
||||
*/
|
||||
package javax.swing.text.html;
|
||||
|
||||
import javax.swing.text.*;
|
||||
import java.io.Writer;
|
||||
import java.util.Stack;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Vector;
|
||||
import java.io.IOException;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.net.URL;
|
||||
import java.io.Writer;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Stack;
|
||||
import java.util.Vector;
|
||||
|
||||
import javax.swing.text.AbstractWriter;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.ElementIterator;
|
||||
import javax.swing.text.MutableAttributeSet;
|
||||
import javax.swing.text.Segment;
|
||||
import javax.swing.text.SimpleAttributeSet;
|
||||
import javax.swing.text.Style;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.StyleContext;
|
||||
|
||||
/**
|
||||
* This is a writer for HTMLDocuments.
|
||||
@ -840,7 +849,7 @@ public class HTMLWriter extends AbstractWriter {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether a the indentation needs to be
|
||||
* Determines whether the indentation needs to be
|
||||
* incremented. Basically, if next is a child of current, and
|
||||
* next is NOT a synthesized element, the indent level will be
|
||||
* incremented. If there is a parent-child relationship and "next"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -24,20 +24,20 @@
|
||||
*/
|
||||
package javax.swing.text.html;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.Component;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.Shape;
|
||||
|
||||
import javax.swing.SizeRequirements;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.text.Document;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.Element;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.View;
|
||||
import javax.swing.text.ViewFactory;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.JTextComponent;
|
||||
|
||||
/**
|
||||
* Displays the a paragraph, and uses css attributes for its
|
||||
* Displays the paragraph and uses CSS attributes for its
|
||||
* configuration.
|
||||
*
|
||||
* @author Timothy Prinzing
|
||||
|
@ -298,7 +298,7 @@ public abstract class SunToolkit extends Toolkit
|
||||
* Fetch the peer associated with the given target (as specified
|
||||
* in the peer creation method). This can be used to determine
|
||||
* things like what the parent peer is. If the target is null
|
||||
* or the target can't be found (either because the a peer was
|
||||
* or the target can't be found (either because the peer was
|
||||
* never created for it or the peer was disposed), a null will
|
||||
* be returned.
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -84,7 +84,7 @@ public final class BidiUtils {
|
||||
static final char NUMLEVELS = 62;
|
||||
|
||||
/**
|
||||
* Given level data, compute a a visual to logical mapping.
|
||||
* Given level data, compute a visual to logical mapping.
|
||||
* The leftmost (or topmost) character is at visual index zero. The
|
||||
* logical index of the character is derived from the visual index
|
||||
* by the expression {@code li = map[vi];}.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -69,7 +69,6 @@ import java.awt.image.renderable.RenderContext;
|
||||
import java.awt.image.renderable.RenderableImage;
|
||||
import java.lang.annotation.Native;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
||||
import sun.awt.ConstrainableGraphics;
|
||||
@ -102,7 +101,7 @@ import static java.awt.geom.AffineTransform.TYPE_MASK_SCALE;
|
||||
import static java.awt.geom.AffineTransform.TYPE_TRANSLATION;
|
||||
|
||||
/**
|
||||
* This is a the master Graphics2D superclass for all of the Sun
|
||||
* This is the master Graphics2D superclass for all of the Sun
|
||||
* Graphics implementations. This class relies on subclasses to
|
||||
* manage the various device information, but provides an overall
|
||||
* general framework for performing all of the requests in the
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,29 +25,23 @@
|
||||
|
||||
package sun.print;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.util.Hashtable;
|
||||
import sun.awt.image.SunWritableRaster;
|
||||
import sun.awt.image.ToolkitImage;
|
||||
import sun.font.CharToGlyphMapper;
|
||||
import sun.font.CompositeFont;
|
||||
import sun.font.Font2D;
|
||||
import sun.font.Font2DHandle;
|
||||
import sun.font.FontManager;
|
||||
import sun.font.FontManagerFactory;
|
||||
import sun.font.FontUtilities;
|
||||
|
||||
import java.awt.AlphaComposite;
|
||||
import java.awt.Composite;
|
||||
import java.awt.Color;
|
||||
import java.awt.Composite;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics2D;
|
||||
import java.awt.Image;
|
||||
import java.awt.Paint;
|
||||
import java.awt.Polygon;
|
||||
import java.awt.Shape;
|
||||
|
||||
import java.awt.geom.Path2D;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.font.GlyphVector;
|
||||
import java.awt.font.TextAttribute;
|
||||
@ -57,10 +51,11 @@ import java.awt.geom.AffineTransform;
|
||||
import java.awt.geom.Arc2D;
|
||||
import java.awt.geom.Ellipse2D;
|
||||
import java.awt.geom.Line2D;
|
||||
import java.awt.geom.Path2D;
|
||||
import java.awt.geom.PathIterator;
|
||||
import java.awt.geom.Point2D;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
import java.awt.geom.PathIterator;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.awt.image.BufferedImageOp;
|
||||
@ -74,16 +69,15 @@ import java.awt.image.RenderedImage;
|
||||
import java.awt.image.SampleModel;
|
||||
import java.awt.image.SinglePixelPackedSampleModel;
|
||||
import java.awt.image.VolatileImage;
|
||||
import sun.awt.image.ByteComponentRaster;
|
||||
import sun.awt.image.ToolkitImage;
|
||||
import sun.awt.image.SunWritableRaster;
|
||||
|
||||
import java.awt.print.PageFormat;
|
||||
import java.awt.print.Printable;
|
||||
import java.awt.print.PrinterException;
|
||||
import java.awt.print.PrinterGraphics;
|
||||
import java.awt.print.PrinterJob;
|
||||
|
||||
import java.lang.ref.SoftReference;
|
||||
import java.text.AttributedCharacterIterator;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Map;
|
||||
|
||||
public abstract class PathGraphics extends ProxyGraphics2D {
|
||||
@ -488,9 +482,9 @@ public abstract class PathGraphics extends ProxyGraphics2D {
|
||||
* 1 ≤ <i>i</i> ≤ {@code nPoints}.
|
||||
* The figure is automatically closed by drawing a line connecting
|
||||
* the final point to the first point, if those points are different.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#fillPolygon
|
||||
* @see java.awt.Graphics#drawPolyline
|
||||
*/
|
||||
@ -526,9 +520,9 @@ public abstract class PathGraphics extends ProxyGraphics2D {
|
||||
* <p>
|
||||
* The area inside the polygon is defined using an
|
||||
* even-odd fill rule, also known as the alternating rule.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
*/
|
||||
public void fillPolygon(int[] xPoints, int[] yPoints,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,7 +35,6 @@ import java.awt.Graphics2D;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GraphicsConfiguration;
|
||||
import java.awt.Image;
|
||||
import java.awt.Paint;
|
||||
@ -50,7 +49,6 @@ import java.awt.font.TextLayout;
|
||||
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.awt.geom.Line2D;
|
||||
import java.awt.geom.Point2D;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
import java.awt.image.BufferedImage;
|
||||
@ -775,9 +773,9 @@ public class PeekGraphics extends Graphics2D
|
||||
* 1 ≤ <i>i</i> ≤ {@code nPoints}.
|
||||
* The figure is automatically closed by drawing a line connecting
|
||||
* the final point to the first point, if those points are different.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#fillPolygon
|
||||
* @see java.awt.Graphics#drawPolyline
|
||||
* @since 1.0
|
||||
@ -807,9 +805,9 @@ public class PeekGraphics extends Graphics2D
|
||||
* <p>
|
||||
* The area inside the polygon is defined using an
|
||||
* even-odd fill rule, also known as the alternating rule.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
* @since 1.0
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -667,9 +667,9 @@ public class ProxyGraphics extends Graphics {
|
||||
* 1 ≤ <i>i</i> ≤ {@code nPoints}.
|
||||
* The figure is automatically closed by drawing a line connecting
|
||||
* the final point to the first point, if those points are different.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#fillPolygon
|
||||
* @see java.awt.Graphics#drawPolyline
|
||||
*/
|
||||
@ -704,9 +704,9 @@ public class ProxyGraphics extends Graphics {
|
||||
* <p>
|
||||
* The area inside the polygon is defined using an
|
||||
* even-odd fill rule, also known as the alternating rule.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
*/
|
||||
public void fillPolygon(int[] xPoints, int[] yPoints,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,7 +34,6 @@ import java.awt.Graphics2D;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.font.FontRenderContext;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.GraphicsConfiguration;
|
||||
import java.awt.Image;
|
||||
import java.awt.Paint;
|
||||
@ -47,7 +46,6 @@ import java.awt.RenderingHints.Key;
|
||||
import java.awt.font.GlyphVector;
|
||||
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.awt.geom.NoninvertibleTransformException;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.awt.image.BufferedImageOp;
|
||||
@ -680,9 +678,9 @@ public class ProxyGraphics2D extends Graphics2D implements PrinterGraphics {
|
||||
* 1 ≤ <i>i</i> ≤ {@code nPoints}.
|
||||
* The figure is automatically closed by drawing a line connecting
|
||||
* the final point to the first point, if those points are different.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#fillPolygon
|
||||
* @see java.awt.Graphics#drawPolyline
|
||||
* @since 1.0
|
||||
@ -707,9 +705,9 @@ public class ProxyGraphics2D extends Graphics2D implements PrinterGraphics {
|
||||
* <p>
|
||||
* The area inside the polygon is defined using an
|
||||
* even-odd fill rule, also known as the alternating rule.
|
||||
* @param xPoints a an array of {@code x} coordinates.
|
||||
* @param yPoints a an array of {@code y} coordinates.
|
||||
* @param nPoints a the total number of points.
|
||||
* @param xPoints an array of {@code x} coordinates.
|
||||
* @param yPoints an array of {@code y} coordinates.
|
||||
* @param nPoints the total number of points.
|
||||
* @see java.awt.Graphics#drawPolygon(int[], int[], int)
|
||||
* @since 1.0
|
||||
*/
|
||||
|
@ -80,7 +80,7 @@
|
||||
<!ENTITY % HTML.HotJava "INCLUDE"
|
||||
-- HotJava specific extensions to the default HTML 3.2 DTD -->
|
||||
|
||||
<!-- Currently we are using the the HTML.3.2.Conflict entity to work around
|
||||
<!-- Currently we are using the HTML.3.2.Conflict entity to work around
|
||||
a bug in the DTD parser where the first declaration of an ENTITY/ELEMENT
|
||||
or ATTLIST is not taking precedence over subsequent declarations of the same
|
||||
item. Therefore we need to explicitly "IGNORE" subsequent declarations
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1697,7 +1697,7 @@ final class WPathGraphics extends PathGraphics {
|
||||
/* selectStylePen is not supported, must be Win 9X */
|
||||
else {
|
||||
|
||||
/* let's see if we can use a a default pen
|
||||
/* let's see if we can use the default pen
|
||||
* if it's round end (Windows' default style)
|
||||
* or it's vertical/horizontal
|
||||
* or stroke is too thin.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -834,7 +834,7 @@ HWND D3DPipelineManager::SetFSFocusWindow(UINT adapterOrdinal, HWND hWnd)
|
||||
// first fs window
|
||||
currentFSFocusAdapter = adapterOrdinal;
|
||||
// REMIND: we might want to reset the rest of the context here as well
|
||||
// like we do when the an adapter exits fs mode; currently they will
|
||||
// like we do when the adapter exits fs mode; currently they will
|
||||
// be reset sometime later
|
||||
} else {
|
||||
// there's already a fs window
|
||||
@ -1010,4 +1010,3 @@ __declspec(dllexport) int preloadD3D()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,31 +25,105 @@
|
||||
|
||||
package com.sun.java.accessibility.internal;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.EventQueue;
|
||||
import java.awt.Font;
|
||||
import java.awt.FontMetrics;
|
||||
import java.awt.GraphicsConfiguration;
|
||||
import java.awt.GraphicsDevice;
|
||||
import java.awt.GraphicsEnvironment;
|
||||
import java.awt.IllegalComponentStateException;
|
||||
import java.awt.KeyboardFocusManager;
|
||||
import java.awt.Point;
|
||||
import java.awt.Rectangle;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.FocusListener;
|
||||
import java.awt.event.InvocationEvent;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.awt.event.WindowListener;
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.util.*;
|
||||
import java.lang.*;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
import java.beans.*;
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.*;
|
||||
import javax.swing.text.*;
|
||||
import javax.swing.tree.*;
|
||||
import javax.swing.table.*;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Vector;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.accessibility.Accessible;
|
||||
import javax.accessibility.AccessibleAction;
|
||||
import javax.accessibility.AccessibleComponent;
|
||||
import javax.accessibility.AccessibleContext;
|
||||
import javax.accessibility.AccessibleEditableText;
|
||||
import javax.accessibility.AccessibleExtendedComponent;
|
||||
import javax.accessibility.AccessibleExtendedTable;
|
||||
import javax.accessibility.AccessibleHyperlink;
|
||||
import javax.accessibility.AccessibleHypertext;
|
||||
import javax.accessibility.AccessibleIcon;
|
||||
import javax.accessibility.AccessibleKeyBinding;
|
||||
import javax.accessibility.AccessibleRelation;
|
||||
import javax.accessibility.AccessibleRelationSet;
|
||||
import javax.accessibility.AccessibleRole;
|
||||
import javax.accessibility.AccessibleSelection;
|
||||
import javax.accessibility.AccessibleState;
|
||||
import javax.accessibility.AccessibleStateSet;
|
||||
import javax.accessibility.AccessibleTable;
|
||||
import javax.accessibility.AccessibleText;
|
||||
import javax.accessibility.AccessibleValue;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.JRootPane;
|
||||
import javax.swing.JTable;
|
||||
import javax.swing.JTree;
|
||||
import javax.swing.KeyStroke;
|
||||
import javax.swing.MenuElement;
|
||||
import javax.swing.MenuSelectionManager;
|
||||
import javax.swing.event.CaretEvent;
|
||||
import javax.swing.event.CaretListener;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
import javax.swing.event.ChangeListener;
|
||||
import javax.swing.event.MenuEvent;
|
||||
import javax.swing.event.MenuListener;
|
||||
import javax.swing.event.PopupMenuEvent;
|
||||
import javax.swing.event.PopupMenuListener;
|
||||
import javax.swing.plaf.TreeUI;
|
||||
import javax.swing.table.TableCellRenderer;
|
||||
import javax.swing.text.AttributeSet;
|
||||
import javax.swing.text.BadLocationException;
|
||||
import javax.swing.text.JTextComponent;
|
||||
import javax.swing.text.StyleConstants;
|
||||
import javax.swing.text.TabSet;
|
||||
import javax.swing.tree.TreeCellRenderer;
|
||||
import javax.swing.tree.TreeModel;
|
||||
import javax.swing.tree.TreePath;
|
||||
|
||||
import javax.accessibility.*;
|
||||
import com.sun.java.accessibility.util.*;
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import com.sun.java.accessibility.util.AWTEventMonitor;
|
||||
import com.sun.java.accessibility.util.AccessibilityEventMonitor;
|
||||
import com.sun.java.accessibility.util.EventQueueMonitor;
|
||||
import com.sun.java.accessibility.util.SwingEventMonitor;
|
||||
import com.sun.java.accessibility.util.Translator;
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.awt.AppContext;
|
||||
import sun.awt.SunToolkit;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/*
|
||||
* Note: This class has to be public. It's loaded from the VM like this:
|
||||
* Class.forName(atName).newInstance();
|
||||
@ -7145,7 +7219,7 @@ public final class AccessBridge {
|
||||
* object behind the TreeCellRenderer.
|
||||
*
|
||||
* @param i zero-based index of actions
|
||||
* @return true if the the action was performed; else false.
|
||||
* @return true if the action was performed; else false.
|
||||
*/
|
||||
public boolean doAccessibleAction(int i) {
|
||||
if (i < 0 || i >= getAccessibleActionCount()) {
|
||||
|
@ -49,7 +49,7 @@ questions.
|
||||
<li> Use Tab and Shift-Tab to move between the four ComboBox widgets.
|
||||
<li>Use the space and down arrow keys to bring up the drop-down list.</li>
|
||||
<li> Use the up and down arrows to navigate up and down the list.</li>
|
||||
<li>Use the 'space' key to make a the selection.</li>
|
||||
<li>Use the 'space' key to make the selection.</li>
|
||||
<li> Repeat 4,5 but hit Esc key to cancel the drop-down.</li>
|
||||
</ol>
|
||||
</td>
|
||||
@ -72,4 +72,3 @@ questions.
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -23,13 +23,29 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.beans.*;
|
||||
import java.lang.reflect.*;
|
||||
import java.util.*;
|
||||
import java.awt.AWTEvent;
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Component;
|
||||
import java.awt.EventQueue;
|
||||
import java.awt.KeyboardFocusManager;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.Window;
|
||||
import java.awt.event.AWTEventListener;
|
||||
import java.awt.event.PaintEvent;
|
||||
import java.beans.PropertyChangeEvent;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedList;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JProgressBar;
|
||||
|
||||
/**
|
||||
* SwingTestHelper is a utility class for writing AWT/Swing regression
|
||||
@ -293,7 +309,7 @@ public abstract class SwingTestHelper {
|
||||
* implementation returns a JFrame with a default close operation
|
||||
* of <code>EXIT_ON_CLOSE</code>. The <code>Component</code>
|
||||
* returned from <code>createContentPane</code> is added the
|
||||
* <code>JFrame</code> and the the frame is packed.
|
||||
* <code>JFrame</code> and the frame is packed.
|
||||
* <p>
|
||||
* Typically you only need override <code>createContentPane</code>.
|
||||
*/
|
||||
|
@ -8,7 +8,7 @@ ProgressBarDemo.stop_button=Stop Loading Text
|
||||
ProgressBarDemo.accessible_text_loading_progress=Text loading progress
|
||||
ProgressBarDemo.accessible_text_area_name=Text progressively being loaded in
|
||||
|
||||
ProgressBarDemo.accessible_text_area_description=This JTextArea is being filled with text from a buffer progressively a character at a time while the progress bar a the bottom of the window shows the loading progress
|
||||
ProgressBarDemo.accessible_text_area_description=This JTextArea is being filled with text from a buffer progressively a character at a time while the progress bar at the bottom of the window shows the loading progress
|
||||
|
||||
ProgressBarDemo.text=\
|
||||
The saying goes: if an infinite number of monkeys typed on an infinite number of typewriters, eventually \n\
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@ import java.util.Vector;
|
||||
|
||||
/**
|
||||
*
|
||||
* Contains methods to search for components below a a given
|
||||
* Contains methods to search for components below a given
|
||||
* {@code java.awt.Container} in the display containment hierarchy. Uses a
|
||||
* {@code ComponentChooser} interface implementation to find a component.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user