8312165: Fix typos in java.desktop Swing

Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: aivanov
This commit is contained in:
Andrey Turbanov 2023-09-15 09:18:28 +00:00
parent 25f32f3538
commit 89cb290bb0
106 changed files with 309 additions and 307 deletions

View File

@ -1259,7 +1259,7 @@ public class AquaFileChooserUI extends FileChooserUI {
}
//
// DataModel for DirectoryComboxbox
// DataModel for DirectoryCombobox
//
protected DirectoryComboBoxModel createDirectoryComboBoxModel(final JFileChooser fc) {
return new DirectoryComboBoxModel();
@ -1368,7 +1368,7 @@ public class AquaFileChooserUI extends FileChooserUI {
}
//
// DataModel for Types Comboxbox
// DataModel for Types Combobox
//
protected FilterComboBoxModel createFilterComboBoxModel() {
return new FilterComboBoxModel();
@ -1412,9 +1412,9 @@ public class AquaFileChooserUI extends FileChooserUI {
public Object getSelectedItem() {
// Ensure that the current filter is in the list.
// NOTE: we shouldnt' have to do this, since JFileChooser adds
// NOTE: we shouldn't have to do this, since JFileChooser adds
// the filter to the choosable filters list when the filter
// is set. Lets be paranoid just in case someone overrides
// is set. Let's be paranoid just in case someone overrides
// setFileFilter in JFileChooser.
FileFilter currentFilter = getFileChooser().getFileFilter();
boolean found = false;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -1179,7 +1179,7 @@ class GTKFileChooserUI extends SynthFileChooserUI {
}
//
// DataModel for DirectoryComboxbox
// DataModel for DirectoryCombobox
//
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
return new DirectoryComboBoxModel();
@ -1468,9 +1468,9 @@ class GTKFileChooserUI extends SynthFileChooserUI {
public Object getSelectedItem() {
// Ensure that the current filter is in the list.
// NOTE: we shouldnt' have to do this, since JFileChooser adds
// NOTE: we shouldn't have to do this, since JFileChooser adds
// the filter to the choosable filters list when the filter
// is set. Lets be paranoid just in case someone overrides
// is set. Let's be paranoid just in case someone overrides
// setFileFilter in JFileChooser.
FileFilter currentFilter = getFileChooser().getFileFilter();
boolean found = false;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -775,10 +775,10 @@ class GTKStyle extends SynthStyle implements GTKConstants {
Object value = getClassSpecificValue(classKey);
if (value != null) {
//This is a workaround as the "slider-length" property has been
//deprecated for GtkScale from gtk 3.20, so default value of 31
//is used and makes redering of slider wrong. Value 14 is being
//used as default value for Slider.thumbHeight is 14 and making
//width 14 as well makes slider thumb render in proper shape
//deprecated for GtkScale from gtk 3.20, so the default value of 31
//is used and makes rendering of the slider wrong. Value 14 is being
//used as the default value for Slider.thumbHeight is 14 and making
//width 14 as well makes the slider thumb render in proper shape
if ("Slider.thumbWidth".equals(key) && value.equals(31)) {
return 14;
}
@ -1127,7 +1127,7 @@ class GTKStyle extends SynthStyle implements GTKConstants {
}
/**
* GTKLazyValue is a slimmed down version of <code>ProxyLaxyValue</code>.
* GTKLazyValue is a slimmed down version of <code>ProxyLazyValue</code>.
* The code is duplicate so that it can get at the package private
* classes in gtk.
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -216,7 +216,7 @@ public class MotifDesktopPaneUI extends javax.swing.plaf.basic.BasicDesktopPaneU
/* Fix for disappearing icons. If the y value is maxy then this
* algorithm would place the icon in a non-displayed cell. Never
* to be ssen again.*/
* to be seen again.*/
y = y >= maxy ? (maxy - 1) : y;
/* Compute the offset for the cell we are trying to go in. */

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -762,7 +762,7 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
}
//
// DataModel for Types Comboxbox
// DataModel for Types Combobox
//
protected FilterComboBoxModel createFilterComboBoxModel() {
return new FilterComboBoxModel();
@ -826,9 +826,9 @@ public class MotifFileChooserUI extends BasicFileChooserUI {
public Object getSelectedItem() {
// Ensure that the current filter is in the list.
// NOTE: we shouldnt' have to do this, since JFileChooser adds
// NOTE: we shouldn't have to do this, since JFileChooser adds
// the filter to the choosable filters list when the filter
// is set. Lets be paranoid just in case someone overrides
// is set. Let's be paranoid just in case someone overrides
// setFileFilter in JFileChooser.
FileFilter currentFilter = getFileChooser().getFileFilter();
boolean found = false;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -760,7 +760,7 @@ public class MotifLookAndFeel extends BasicLookAndFeel
MotifLookAndFeel.class,
"icons/DesktopIcon.gif"),
"DesktopIcon.border", null,
// These are a little odd, MotifInternalFrameUI isntalls em!
// These are a little odd, MotifInternalFrameUI installs em!
"DesktopIcon.windowBindings", new Object[]
{ "ESCAPE", "hideSystemMenu" },

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -53,7 +53,7 @@ public class MotifOptionPaneUI extends BasicOptionPaneUI
}
/**
* Creates and returns a Container containin the buttons. The buttons
* Creates and returns a Container containing the buttons. The buttons
* are created by calling <code>getButtons</code>.
*/
protected Container createButtonArea() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -556,7 +556,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
}
if ((root instanceof RootPaneContainer) &&
(rootJ instanceof JRootPane)) {
// We're in a Swing heavyeight (JFrame/JWindow...), use double
// We're in a Swing heavyweight (JFrame/JWindow...), use double
// buffering if double buffering enabled on the JRootPane and
// the JRootPane wants true double buffering.
if (rootJ.isDoubleBuffered() &&
@ -685,12 +685,12 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
}
/**
* Returns the BufferStartegy. This will return null if
* the BufferStartegy hasn't been created and <code>create</code> is
* Returns the BufferStrategy. This will return null if
* the BufferStrategy hasn't been created and <code>create</code> is
* false, or if there is a problem in creating the
* <code>BufferStartegy</code>.
* <code>BufferStrategy</code>.
*
* @param create If true, and the BufferStartegy is currently null,
* @param create If true and the BufferStrategy is currently null,
* one will be created.
*/
public BufferStrategy getBufferStrategy(boolean create) {
@ -793,7 +793,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
} catch (AWTException e) {
// Type is not supported
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
LOGGER.finer("createBufferStratety failed",
LOGGER.finer("createBufferStrategy failed",
e);
}
}
@ -805,7 +805,7 @@ class BufferStrategyPaintManager extends RepaintManager.PaintManager {
} catch (AWTException e) {
// Type not supported
if (LOGGER.isLoggable(PlatformLogger.Level.FINER)) {
LOGGER.finer("createBufferStratety failed",
LOGGER.finer("createBufferStrategy failed",
e);
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -95,7 +95,7 @@ public abstract class FocusManager extends DefaultKeyboardFocusManager {
* <p>
* If a <code>SecurityManager</code> is installed,
* the calling thread must be granted the <code>AWTPermission</code>
* "replaceKeyboardFocusManager" in order to replace the
* "replaceKeyboardFocusManager" in order to replace
* the current <code>KeyboardFocusManager</code>.
* If this permission is not granted,
* this method will throw a <code>SecurityException</code>,

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2023, 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
@ -3521,7 +3521,7 @@ public class GroupLayout implements LayoutManager2 {
}
// LinkInfo contains the set of ComponentInfosthat are linked along a
// LinkInfo contains the set of ComponentInfos that are linked along a
// particular axis.
private static class LinkInfo {
private final int axis;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -5050,11 +5050,11 @@ public abstract class JComponent extends Container implements Serializable,
return;
}
JComponent paintingOigin = SwingUtilities.getPaintingOrigin(this);
if (paintingOigin != null) {
JComponent paintingOrigin = SwingUtilities.getPaintingOrigin(this);
if (paintingOrigin != null) {
Rectangle rectangle = SwingUtilities.convertRectangle(
c, new Rectangle(x, y, w, h), paintingOigin);
paintingOigin.paintImmediately(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
c, new Rectangle(x, y, w, h), paintingOrigin);
paintingOrigin.paintImmediately(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
return;
}
@ -5510,7 +5510,7 @@ public abstract class JComponent extends Container implements Serializable,
/**
* This is the method that's called after the entire graph
* of objects has been read in. It initializes
* the UI property of all of the copmonents with
* the UI property of all of the components with
* <code>SwingUtilities.updateComponentTreeUI</code>.
*/
public void validateObject() throws InvalidObjectException {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1227,7 +1227,7 @@ public class JEditorPane extends JTextComponent {
*/
@SuppressWarnings("deprecation")
public static EditorKit createEditorKitForContentType(String type) {
Hashtable<String, EditorKit> kitRegistry = getKitRegisty();
Hashtable<String, EditorKit> kitRegistry = getKitRegistry();
EditorKit k = kitRegistry.get(type);
if (k == null) {
// try to dynamically load the support
@ -1294,7 +1294,7 @@ public class JEditorPane extends JTextComponent {
} else {
getKitLoaderRegistry().remove(type);
}
getKitRegisty().remove(type);
getKitRegistry().remove(type);
}
/**
@ -1326,7 +1326,7 @@ public class JEditorPane extends JTextComponent {
return tmp;
}
private static Hashtable<String, EditorKit> getKitRegisty() {
private static Hashtable<String, EditorKit> getKitRegistry() {
@SuppressWarnings("unchecked")
Hashtable<String, EditorKit> ht =
(Hashtable)SwingUtilities.appContextGet(kitRegistryKey);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1665,7 +1665,7 @@ public class JFileChooser extends JComponent implements Accessible {
* @see FileSystemView
*/
@BeanProperty(expert = true, description
= "Sets the FileSytemView used to get filesystem information.")
= "Sets the FileSystemView used to get filesystem information.")
public void setFileSystemView(FileSystemView fsv) {
FileSystemView oldValue = fileSystemView;
fileSystemView = fsv;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -465,7 +465,7 @@ public class JLayeredPane extends JComponent implements Accessible {
* @param c the Component to check
* @return an int giving the component's position, where 0 is the
* topmost position and the highest index value = the count
* count of components at that layer, minus 1
* of components at that layer minus 1
*
* @see #getComponentCountInLayer
*/
@ -529,7 +529,7 @@ public class JLayeredPane extends JComponent implements Accessible {
curLayer = getLayer(getComponent(i));
if(curLayer == layer) {
layerCount++;
/// Short-circuit the counting when we have them all
// Short-circuit the counting when we have them all
} else if(layerCount > 0 || curLayer < layer) {
break;
}
@ -555,7 +555,7 @@ public class JLayeredPane extends JComponent implements Accessible {
curLayer = getLayer(getComponent(i));
if(curLayer == layer) {
results[layerCount++] = getComponent(i);
/// Short-circuit the counting when we have them all
// Short-circuit the counting when we have them all
} else if(layerCount > 0 || curLayer < layer) {
break;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1769,7 +1769,7 @@ public class JList<E> extends JComponent implements Scrollable, Accessible
* during construction to initialize the list's selection model
* property.
*
* @return a {@code DefaultListSelecitonModel}, used to initialize
* @return a {@code DefaultListSelectionModel}, used to initialize
* the list's selection model property during construction
* @see #setSelectionModel
* @see DefaultListSelectionModel

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -362,7 +362,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement
int x;
int y;
JPopupMenu pm = getPopupMenu();
// Figure out the sizes needed to caclulate the menu position
// Figure out the sizes needed to calculate the menu position
Dimension s = getSize();
Dimension pmSize = pm.getSize();
// For the first time the menu is popped up,

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -185,8 +185,8 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
}
/**
* Inititalizes the focusability of the <code>JMenuItem</code>.
* <code>JMenuItem</code>'s are focusable, but subclasses may
* Initializes the focusability of the <code>JMenuItem</code>.
* <code>JMenuItem</code>'s are non-focusable, but subclasses may
* want to be, this provides them the opportunity to override this
* and invoke something else, or nothing at all. Refer to
* {@link javax.swing.JMenu#initFocusability} for the motivation of
@ -808,7 +808,7 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
* <code>JMenuItem</code>. For <code>JMenuItem</code>s,
* the <code>AccessibleContext</code> takes the form of an
* <code>AccessibleJMenuItem</code>.
* A new AccessibleJMenuItme instance is created if necessary.
* A new <code>AccessibleJMenuItem</code> instance is created if necessary.
*
* @return an <code>AccessibleJMenuItem</code> that serves as the
* <code>AccessibleContext</code> of this <code>JMenuItem</code>

View File

@ -120,7 +120,7 @@ public class JPopupMenu extends JComponent implements Accessible,MenuElement {
/** Bug#4425878-Property javax.swing.adjustPopupLocationToFit introduced */
@SuppressWarnings("removal")
static boolean popupPostionFixDisabled =
static boolean popupPositionFixDisabled =
java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction(
"javax.swing.adjustPopupLocationToFit","")).equals("false");
@ -342,7 +342,7 @@ public class JPopupMenu extends JComponent implements Accessible,MenuElement {
Point adjustPopupLocationToFitScreen(int xPosition, int yPosition) {
Point popupLocation = new Point(xPosition, yPosition);
if(popupPostionFixDisabled == true || GraphicsEnvironment.isHeadless()) {
if (popupPositionFixDisabled || GraphicsEnvironment.isHeadless()) {
return popupLocation;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -361,7 +361,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
/**
* We pass Change events along to the listeners with the
* We pass Change events along to the listeners with
* the slider (instead of the model itself) as the event source.
*/
private class ModelListener implements ChangeListener, Serializable {
@ -930,7 +930,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
}
if ( increment <= 0 ) {
throw new IllegalArgumentException( "Label incremement must be > 0" );
throw new IllegalArgumentException( "Label increment must be > 0" );
}
class SmartHashtable extends Hashtable<Integer, JComponent> implements PropertyChangeListener {
@ -1595,7 +1595,7 @@ public class JSlider extends JComponent implements SwingConstants, Accessible {
if (i < 0 || i > 1) {
return false;
}
//0 is increment, 1 is decrrement
//0 is increment, 1 is decrement
int delta = ((i > 0) ? -1 : 1);
JSlider.this.setValue(oldModelValue + delta);
return true;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -912,7 +912,7 @@ public class JSplitPane extends JComponent implements Accessible
/**
* Removes all the child components from the split pane. Resets the
* <code>leftComonent</code> and <code>rightComponent</code>
* <code>leftComponent</code> and <code>rightComponent</code>
* instance variables.
*/
public void removeAll() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -3209,7 +3209,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
// would have resulted in the layout the user has chosen.
// Thereafter, during window resizing etc. it has to work off
// the preferred sizes as usual - the idea being that, whatever
// the user does, everything stays in synch and things don't jump
// the user does, everything stays in sync and things don't jump
// around.
setWidthsFromPreferredWidths(true);
}
@ -4036,7 +4036,7 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
}
/**
* Inovked when either the table has changed or the sorter has changed
* Invoked when either the table has changed or the sorter has changed
* and after the sorter has been notified. If necessary this will
* reapply the selection and variable row heights.
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1573,7 +1573,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
/**
* Returns <code>isEditable</code>. This is invoked from the UI before
* editing begins to insure that the given path can be edited. This
* editing begins to ensure that the given path can be edited. This
* is provided as an entry point for subclassers to add filtered
* editing without having to resort to creating a new editor.
*
@ -3104,7 +3104,7 @@ public class JTree extends JComponent implements Scrollable, Accessible
}
prefix = prefix.toUpperCase();
// start search from the next/previous element froom the
// start search from the next/previous element of the
// selected element
int increment = (bias == Position.Bias.Forward) ? 1 : -1;
int row = startingRow;

View File

@ -537,8 +537,8 @@ public class PopupFactory {
}
/**
* As we recycle the <code>Window</code>, we don't want to dispose it,
* thus this method does nothing, instead use <code>_dipose</code>
* As we recycle the <code>Window</code>, we don't want to dispose of it,
* thus this method does nothing, instead use <code>_dispose</code>
* which will handle the disposing.
*/
void dispose() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -432,7 +432,7 @@ public class ProgressMonitor implements Accessible
/**
* Returns the amount of time it will take for the popup to appear.
*
* @return the amont of time in milliseconds it will take for the
* @return the amount of time in milliseconds it will take for the
* popup to appear
* @see #setMillisToPopup
*/
@ -527,7 +527,7 @@ public class ProgressMonitor implements Accessible
* JLabel
* JProgressBar
*
* The AccessibleProgessMonitor accessibility hierarchy is:
* The AccessibleProgressMonitor accessibility hierarchy is:
* AccessibleJDialog
* AccessibleProgressMonitor
* AccessibleJLabel

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1865,7 +1865,7 @@ public class RepaintManager
* Runnable used to process all repaint/revalidate requests.
*/
private final class ProcessingRunnable implements Runnable {
// If true, we're wainting on the EventQueue.
// If true, we're waiting on the EventQueue.
private boolean pending;
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, 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
@ -281,8 +281,8 @@ public class SortingFocusTraversalPolicy
throw new IllegalArgumentException("aContainer is not a focus cycle root of aComponent");
}
// Before all the ckecks below we first see if it's an FTP provider or a focus cycle root.
// If it's the case just go down cycle (if it's set to "implicit").
// Before all the checks below we first see if it's an FTP provider or a focus cycle root.
// If it's the case, just go down cycle (if it's set to "implicit").
Component comp = getComponentDownCycle(aComponent, FORWARD_TRAVERSAL);
if (comp != null) {
return comp;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, 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,7 @@ public class SpinnerListModel extends AbstractSpinnerModel implements Serializab
* The initial value (<i>current element</i>)
* of the model will be <code>values.get(0)</code>.
* If <code>values</code> is <code>null</code> or has zero
* size, an <code>IllegalArugmentException</code> is thrown.
* size, an <code>IllegalArgumentException</code> is thrown.
*
* @param values the sequence this model represents
* @throws IllegalArgumentException if <code>values</code> is

View File

@ -248,8 +248,8 @@ public abstract class SwingWorker<T, V> implements RunnableFuture<T> {
private volatile StateValue state;
/**
* everything is run inside this FutureTask. Also it is used as
* a delegatee for the Future API.
* Everything is run inside this FutureTask. Also it is used as
* a delegate for the Future API.
*/
private final FutureTask<T> future;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -220,7 +220,7 @@ public final class ToolTipManager extends MouseAdapter implements MouseMotionLis
/**
* Returns the reshow delay property.
*
* @return reshown delay property
* @return reshow delay property
* @see #setReshowDelay
*/
public int getReshowDelay() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1372,8 +1372,8 @@ public class UIDefaults extends Hashtable<Object,Object>
return value;
}
String composeKey(String key, int reduce, String sufix) {
return key.substring(0, key.length() - reduce) + sufix;
String composeKey(String key, int reduce, String suffix) {
return key.substring(0, key.length() - reduce) + suffix;
}
String getTextFromProperty(String text) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -44,7 +44,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when a internal frame has been opened.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#show
*/
public void internalFrameOpened(InternalFrameEvent e);
@ -54,7 +54,7 @@ public interface InternalFrameListener extends EventListener {
* The close operation can be overridden at this point.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setDefaultCloseOperation
*/
public void internalFrameClosing(InternalFrameEvent e);
@ -63,7 +63,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when an internal frame has been closed.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setClosed
*/
public void internalFrameClosed(InternalFrameEvent e);
@ -72,7 +72,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when an internal frame is iconified.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setIcon
*/
public void internalFrameIconified(InternalFrameEvent e);
@ -81,7 +81,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when an internal frame is de-iconified.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setIcon
*/
public void internalFrameDeiconified(InternalFrameEvent e);
@ -90,7 +90,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when an internal frame is activated.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setSelected
*/
public void internalFrameActivated(InternalFrameEvent e);
@ -99,7 +99,7 @@ public interface InternalFrameListener extends EventListener {
* Invoked when an internal frame is de-activated.
*
* @param e an {@code InternalFrameEvent} with information about the
* {@code JInteralFrame} that originated the event
* {@code JInternalFrame} that originated the event
* @see javax.swing.JInternalFrame#setSelected
*/
public void internalFrameDeactivated(InternalFrameEvent e);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -81,7 +81,7 @@ public class TreeModelEvent extends EventObject {
* starting at the lowest index and working towards the highest. Accumulate
* a Vector of <code>Integer</code> objects that specify the
* insert-locations as you go, then convert the Vector to an
* array of <code>int</code> to create the event. When the postition-index
* array of <code>int</code> to create the event. When the position-index
* equals zero, the node is inserted at the beginning of the list. When the
* position index equals the size of the list, the node is "inserted" at
* (appended to) the end of the list.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -112,7 +112,7 @@ public class TreeSelectionEvent extends EventObject
/**
* Returns the paths that have been added or removed from the selection.
*
* @return copy of the array of {@code TreePath} obects for this event.
* @return copy of the array of {@code TreePath} objects for this event.
*/
public TreePath[] getPaths()
{

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -172,7 +172,7 @@ public class BorderUIResource implements Border, UIResource, Serializable
/**
* Constructs an {@code EmptyBorderUIResource}.
* @param insets the insets of the border
* @throws NullPointerException if the spcecified {@code insets}
* @throws NullPointerException if the specified {@code insets}
* is {@code null}
*/
@ConstructorProperties({"borderInsets"})

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -226,7 +226,7 @@ public class BasicBorders {
g.translate(x, y);
if (model.isPressed() && model.isArmed() || model.isSelected()) {
// Draw the pressd button
// Draw the pressed button
g.setColor(shade);
g.drawRect(0, 0, w-1, h-1);
g.setColor(lightHighlight);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -423,9 +423,9 @@ public class BasicInternalFrameUI extends InternalFrameUI
* and adds it to the frame.
* Reverse process for the <code>currentPane</code>.
*
* @param currentPane this {@code Jcomponent} is the current pane being
* @param currentPane this {@code JComponent} is the current pane being
* viewed that has mouse handlers installed
* @param newPane this {@code Jcomponent} is the pane which will be added
* @param newPane this {@code JComponent} is the pane which will be added
* and have mouse handlers installed
*/
protected void replacePane(JComponent currentPane, JComponent newPane) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -363,7 +363,7 @@ public class BasicListUI extends ListUI
for (int colCounter = startColumn; colCounter <= endColumn;
colCounter++) {
// And then how many rows in this columnn
// And then how many rows in this column
int row = convertLocationToRowInColumn(paintBounds.y, colCounter);
int rowCount = getRowCount(colCounter);
int index = getModelIndex(colCounter, row);
@ -2237,7 +2237,7 @@ public class BasicListUI extends ListUI
}
Rectangle cellBounds = list.getCellBounds(index, index);
// go one cell down if first visible cell doesn't fit
// into adjasted visible rectangle
// into adjusted visible rectangle
if (cellBounds != null && cellBounds.y < visRect.y) {
p.y = cellBounds.y + cellBounds.height;
index = list.locationToIndex(p);
@ -2290,7 +2290,7 @@ public class BasicListUI extends ListUI
}
cellBounds = list.getCellBounds(index, index);
// go one cell up if last visible cell doesn't fit
// into adjasted visible rectangle
// into adjusted visible rectangle
if (cellBounds != null &&
cellBounds.y + cellBounds.height >
visRect.y + visRect.height)

View File

@ -219,7 +219,7 @@ public abstract class BasicLookAndFeel extends LookAndFeel implements Serializab
if (disposer != null) {
// Note that we're likely calling removePropertyChangeListener()
// during the course of AppContext.firePropertyChange().
// However, EventListenerAggreggate has code to safely modify
// However, EventListenerAggregate has code to safely modify
// the list under such circumstances.
context.removePropertyChangeListener(AppContext.GUI_DISPOSED,
disposer);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1026,8 +1026,8 @@ public class BasicPopupMenuUI extends PopupMenuUI {
void removeItems() {
if (lastFocused != null) {
if(!lastFocused.requestFocusInWindow()) {
// Workarounr for 4810575.
// If lastFocused is not in currently focused window
// Workaround for 4810575.
// If lastFocused is not in currently focused window,
// requestFocusInWindow will fail. In this case we must
// request focus by requestFocus() if it was not
// transferred from our popup.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -913,7 +913,7 @@ public class BasicProgressBarUI extends ProgressBarUI {
// there is more than enough room in the progress bar
// for everything.
// This does have a strange dependency on
// getStringPlacememnt() in a funny way.
// getStringPlacement() in a funny way.
int stringHeight = fontSizer.getHeight() +
fontSizer.getDescent();
if (stringHeight > size.height) {
@ -980,7 +980,7 @@ public class BasicProgressBarUI extends ProgressBarUI {
/**
* Returns the number of frames for the complete animation loop
* used by an indeterminate JProgessBar. The progress chunk will go
* used by an indeterminate JProgressBar. The progress chunk will go
* from one end to the other and back during the entire loop. This
* visual behavior may be changed by subclasses in other Look and Feels.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -370,7 +370,7 @@ public class BasicScrollPaneUI
} else {
/* The following line can't handle a small value of
* viewPosition.x like Integer.MIN_VALUE correctly
* because (max - extent - viewPositoiin.x) causes
* because (max - extent - viewPosition.x) causes
* an overflow. As a result, value becomes zero.
* (e.g. setViewPosition(Integer.MAX_VALUE, ...)
* in a user program causes a overflow.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -970,7 +970,7 @@ public class BasicSplitPaneDivider extends Container
newY = Math.min(maxX, Math.max(minX, newY - offset));
return newY;
}
} // End of BasicSplitPaneDividier.VerticalDragController
} // End of BasicSplitPaneDivider.VerticalDragController
/**
@ -1118,7 +1118,7 @@ public class BasicSplitPaneDivider extends Container
int newLoc;
// We use the location from the UI directly, as the location the
// JSplitPane itself maintains is not necessarly correct.
// JSplitPane itself maintains is not necessarily correct.
if (toMinimum) {
if (orientation == JSplitPane.VERTICAL_SPLIT) {
if (currentLoc >= (splitPane.getHeight() -

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -616,7 +616,7 @@ public class BasicTabbedPaneUI extends TabbedPaneUI implements SwingConstants {
}
/**
* Reloads the mnemonics. This should be invoked when a memonic changes,
* Reloads the mnemonics. This should be invoked when a mnemonic changes,
* when the title of a mnemonic changes, or when tabs are added/removed.
*/
private void updateMnemonics() {

View File

@ -206,7 +206,7 @@ public class BasicTableUI extends TableUI
boolean inSelection) {
super(name);
// Actions spcifying true for "inSelection" are
// Actions specifying true for "inSelection" are
// fairly sensitive to bad parameter values. They require
// that one of dx and dy be 0 and the other be -1 or 1.
// Bogus parameter values could cause an infinite loop.
@ -526,7 +526,7 @@ public class BasicTableUI extends TableUI
// for the focus regardless of who owns the focus at the
// time the call to requestFocus() is made. The optimisation
// to ignore the call to requestFocus() when the component
// already has focus may ligitimately be made as the
// already has focus may legitimately be made as the
// request focus event is dequeued, not before.
// boolean wasEditingWithFocus = table.isEditing() &&

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -222,7 +222,7 @@ public class BasicToolTipUI extends ToolTipUI
}
/**
* Invoked when the <code>JCompoment</code> associated with the
* Invoked when the <code>JComponent</code> associated with the
* <code>JToolTip</code> has changed, or at initialization time. This
* should update any state dependent upon the <code>JComponent</code>.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -168,7 +168,7 @@ public class BasicTreeUI extends TreeUI
/** Set to true if the editor has a different size than the renderer. */
protected boolean editorHasDifferentSize;
/** Row correspondin to lead path. */
/** Row corresponding to lead path. */
private int leadRow;
/** If true, the property change event for LEAD_SELECTION_PATH_PROPERTY,
* or ANCHOR_SELECTION_PATH_PROPERTY will not generate a repaint. */
@ -984,7 +984,7 @@ public class BasicTreeUI extends TreeUI
}
/**
* Intalls the subcomponents of the tree, which is the renderer pane.
* Installs the subcomponents of the tree, which is the renderer pane.
*/
protected void installComponents() {
if ((rendererPane = createCellRendererPane()) != null) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -405,21 +405,21 @@ public class DefaultMetalTheme extends MetalTheme {
*/
private static class WindowsFontDelegate extends FontDelegate {
private MetalFontDesktopProperty[] props;
private boolean[] checkedPriviledged;
private boolean[] checkedPrivileged;
public WindowsFontDelegate() {
props = new MetalFontDesktopProperty[6];
checkedPriviledged = new boolean[6];
checkedPrivileged = new boolean[6];
}
public FontUIResource getFont(int type) {
if (fonts[type] != null) {
return fonts[type];
}
if (!checkedPriviledged[type]) {
if (!checkedPrivileged[type]) {
Font f = getPrivilegedFont(type);
checkedPriviledged[type] = true;
checkedPrivileged[type] = true;
if (f != null) {
fonts[type] = new FontUIResource(f);
return fonts[type];

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -54,7 +54,7 @@ import java.io.Serializable;
@SuppressWarnings("serial") // Same-version serialization only
public class MetalCheckBoxUI extends MetalRadioButtonUI {
// NOTE: MetalCheckBoxUI inherts from MetalRadioButtonUI instead
// NOTE: MetalCheckBoxUI inherits from MetalRadioButtonUI instead
// of BasicCheckBoxUI because we want to pick up all the
// painting changes made in MetalRadioButtonUI.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -338,10 +338,10 @@ public class MetalComboBoxUI extends BasicComboBoxUI {
}
}
// These two methods were overloaded and made public. This was probably a
// mistake in the implementation. The functionality that they used to
// These two methods were overridden and made public. This was probably
// a mistake in the implementation. The functionality that they used to
// provide is no longer necessary and should be removed. However,
// removing them will create an uncompatible API change.
// removing them will create an incompatible API change.
public void configureEditor() {
super.configureEditor();
@ -410,10 +410,10 @@ public class MetalComboBoxUI extends BasicComboBoxUI {
super( cBox );
}
// This method was overloaded and made public. This was probably
// mistake in the implementation. The functionality that they used to
// This method was overridden and made public. This was probably
// a mistake in the implementation. The functionality that it used to
// provide is no longer necessary and should be removed. However,
// removing them will create an uncompatible API change.
// removing it will create an incompatible API change.
public void delegateFocus(MouseEvent e) {
super.delegateFocus(e);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -126,7 +126,7 @@ public class MetalDesktopIconUI extends BasicDesktopIconUI
}
public Dimension getMinimumSize(JComponent c) {
// For the metal desktop icon we will use the layout maanger to
// For the metal desktop icon we will use the layout manager to
// determine the correct height of the component, but we want to keep
// the width consistent according to the jlf spec.
return new Dimension(width,

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -1197,9 +1197,9 @@ public class MetalFileChooserUI extends BasicFileChooserUI {
public Object getSelectedItem() {
// Ensure that the current filter is in the list.
// NOTE: we shouldnt' have to do this, since JFileChooser adds
// NOTE: we shouldn't have to do this, since JFileChooser adds
// the filter to the choosable filters list when the filter
// is set. Lets be paranoid just in case someone overrides
// is set. Let's be paranoid just in case someone overrides
// setFileFilter in JFileChooser.
FileFilter currentFilter = getFileChooser().getFileFilter();
boolean found = false;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -332,7 +332,7 @@ class MetalSplitPaneDivider extends BasicSplitPaneDivider
Insets insets = getInsets();
// This layout differs from the one used in BasicSplitPaneDivider.
// It does not center justify the oneTouchExpadable buttons.
// It does not center justify the oneTouchExpandable buttons.
// This was necessary in order to meet the spec of the Metal
// splitpane divider.
if (leftButton != null && rightButton != null &&

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -87,10 +87,10 @@ public class MetalToggleButtonUI extends BasicToggleButtonUI {
public MetalToggleButtonUI() {}
/**
* Constructs the {@code MetalToogleButtonUI}.
* Constructs the {@code MetalToggleButtonUI}.
*
* @param b a component
* @return the {@code MetalToogleButtonUI}.
* @return the {@code MetalToggleButtonUI}.
*/
public static ComponentUI createUI(JComponent b) {
AppContext appContext = AppContext.getAppContext();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -655,12 +655,12 @@ public abstract class AbstractRegionPainter implements Painter<JComponent> {
dstInsets = insets;
}
// paint 9 square scaled
Object oldScaleingHints = g.getRenderingHint(RenderingHints.KEY_INTERPOLATION);
Object oldScalingHints = g.getRenderingHint(RenderingHints.KEY_INTERPOLATION);
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);
ImageScalingHelper.paint(g, 0, 0, w, h, img, insets, dstInsets,
ImageScalingHelper.PaintType.PAINT9_STRETCH, ImageScalingHelper.PAINT_ALL);
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
oldScaleingHints!=null?oldScaleingHints:RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
oldScalingHints!=null?oldScalingHints:RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
} else {
// render directly
paint0(g, c, w, h, extendedCacheKeys);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -41,11 +41,9 @@ class DropShadowEffect extends ShadowEffect {
// Effect Methods
/**
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
* painted. OVER means the result of apply effect should be painted over the src image.
* {@inheritDoc}
*
* @return The effect type
* @return {@inheritDoc}
*/
@Override
EffectType getEffectType() {
@ -78,7 +76,7 @@ class DropShadowEffect extends ShadowEffect {
double trangleAngle = Math.toRadians(angle - 90);
int offsetX = (int) (Math.sin(trangleAngle) * distance);
int offsetY = (int) (Math.cos(trangleAngle) * distance);
// clac expanded size
// calc expanded size
int tmpOffX = offsetX + size;
int tmpOffY = offsetX + size;
int tmpW = w + offsetX + size + size;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -43,9 +43,15 @@ abstract class Effect {
// Abstract Methods
/**
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
* painted. OVER means the result of apply effect should be painted over the src image.
* Get the type of this effect, one of {@code UNDER}, {@code BLENDED}, {@code OVER}.
* <ul>
* <li><b>{@code UNDER}</b> means the result of applying the effect
* should be painted under the src image.</li>
* <li><b>{@code BLENDED}</b> means the result of applying the effect
* contains a modified src image, so it should just be painted.</li>
* <li><b>{@code OVER}</b> means the result of applying the effect
* should be painted over the src image.</li>
* </ul>
*
* @return The effect type
*/
@ -68,7 +74,7 @@ abstract class Effect {
* the area the need effect applied to it
* @param h The height of the src image to apply effect to, this allow the src and dst buffers to be bigger than
* the area the need effect applied to it
* @return The result of appl
* @return The result of applying the effect
*/
abstract BufferedImage applyEffect(BufferedImage src, BufferedImage dst, int w, int h);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -48,7 +48,7 @@ class ImageCache {
new LinkedHashMap<Integer, PixelCountSoftReference>(16, 0.75f, true);
// Maximum number of pixels to cache, this is used if maxCount
private final int maxPixelCount;
// Maximum cached image size in pxiels
// Maximum cached image size in pixels
private final int maxSingleImagePixelSize;
// The current number of pixels stored in the cache
private int currentPixelCount = 0;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -41,11 +41,9 @@ class InnerShadowEffect extends ShadowEffect {
// Effect Methods
/**
* Get the type of this effect, one of UNDER,BLENDED,OVER. UNDER means the result of apply effect should be painted
* under the src image. BLENDED means the result of apply sffect contains a modified src image so just it should be
* painted. OVER means the result of apply effect should be painted over the src image.
* {@inheritDoc}
*
* @return The effect type
* @return {@inheritDoc}
*/
Effect.EffectType getEffectType() {
return Effect.EffectType.OVER;
@ -73,10 +71,10 @@ class InnerShadowEffect extends ShadowEffect {
"destination images of type BufferedImage.TYPE_INT_ARGB.");
}
// calculate offset
double trangleAngle = Math.toRadians(angle - 90);
int offsetX = (int) (Math.sin(trangleAngle) * distance);
int offsetY = (int) (Math.cos(trangleAngle) * distance);
// clac expanded size
double triangleAngle = Math.toRadians(angle - 90);
int offsetX = (int) (Math.sin(triangleAngle) * distance);
int offsetY = (int) (Math.cos(triangleAngle) * distance);
// calc expanded size
int tmpOffX = offsetX + size;
int tmpOffY = offsetX + size;
int tmpW = w + offsetX + size + size;
@ -119,9 +117,9 @@ class InnerShadowEffect extends ShadowEffect {
int shadowOffset = (srcY - offsetY) * tmpW;
for (int x = 0; x < w; x++) {
int srcX = x + tmpOffX;
int origianlAlphaVal = 255 - ((int) srcAlphaBuf[offset + srcX] & 0xFF);
int originalAlphaVal = 255 - ((int) srcAlphaBuf[offset + srcX] & 0xFF);
int shadowVal = (int) tmpBuf1[shadowOffset + (srcX - offsetX)] & 0xFF;
int alphaVal = Math.min(origianlAlphaVal, shadowVal);
int alphaVal = Math.min(originalAlphaVal, shadowVal);
lineBuf[x] = ((byte) alphaVal & 0xFF) << 24 | red << 16 | green << 8 | blue;
}
shadowRaster.setDataElements(0, y, w, 1, lineBuf);

View File

@ -484,7 +484,7 @@ public class NimbusLookAndFeel extends SynthLookAndFeel {
}
/**
* Simple Symbolic Link style UIDefalts Property
* Simple Symbolic Link style UIDefaults Property
*/
private static class LinkProperty implements UIDefaults.ActiveValue, UIResource{
private String dstPropName;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -115,7 +115,7 @@ class SynthArrowButton extends JButton implements SwingConstants, UIResource {
dim = new Dimension(size, size);
}
// handle scaling for sizeVarients for special case components. The
// handle scaling for sizeVariants for special case components. The
// key "JComponent.sizeVariant" scales for large/small/mini
// components are based on Apples LAF
Container parent = context.getComponent().getParent();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -545,8 +545,8 @@ public class SynthGraphicsUtils {
result.height += insets.top + insets.bottom;
}
// if the width is even, bump it up one. This is critical
// for the focus dash lhne to draw properly
// if the width is even, bump it up by one. This is critical
// for the focus dash line to draw properly
if (result.width % 2 == 0) {
result.width++;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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
@ -182,7 +182,7 @@ class SynthParser extends DefaultHandler {
private List<ColorType> _colorTypes;
/**
* defaultsPropertys are placed here.
* Default properties are placed here.
*/
private Map<String, Object> _defaultsMap;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -108,7 +108,7 @@ public class SynthProgressBarUI extends BasicProgressBarUI
"ProgressBar.rotateText", false);
tileWhenIndeterminate = style.getBoolean(context, "ProgressBar.tileWhenIndeterminate", false);
tileWidth = style.getInt(context, "ProgressBar.tileWidth", 15);
// handle scaling for sizeVarients for special case components. The
// handle scaling for sizeVariants for special case components. The
// key "JComponent.sizeVariant" scales for large/small/mini
// components are based on Apples LAF
String scaleKey = (String)progressBar.getClientProperty(
@ -456,7 +456,7 @@ public class SynthProgressBarUI extends BasicProgressBarUI
}
}
// handle scaling for sizeVarients for special case components. The
// handle scaling for sizeVariants for special case components. The
// key "JComponent.sizeVariant" scales for large/small/mini
// components are based on Apples LAF
String scaleKey = (String)progressBar.getClientProperty(

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -109,7 +109,7 @@ public class SynthScrollBarUI extends BasicScrollBarUI
incrGap = style.getInt(context, "ScrollBar.incrementButtonGap", 0);
decrGap = style.getInt(context, "ScrollBar.decrementButtonGap", 0);
// handle scaling for sizeVarients for special case components. The
// handle scaling for sizeVariants for special case components. The
// key "JComponent.sizeVariant" scales for large/small/mini
// components are based on Apples LAF
String scaleKey = (String)scrollbar.getClientProperty(

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -157,7 +157,7 @@ public class SynthSliderUI extends BasicSliderUI
thumbHeight =
style.getInt(context, "Slider.thumbHeight", 14);
// handle scaling for sizeVarients for special case components. The
// handle scaling for sizeVariants for special case components. The
// key "JComponent.sizeVariant" scales for large/small/mini
// components are based on Apples LAF
String scaleKey = (String)slider.getClientProperty(

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -2192,7 +2192,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Returns the number of children <code>TreeNode</code>'s
* receiver contains.
* @return the number of children <code>TreeNodews</code>'s
* @return the number of children <code>TreeNode</code>'s
* receiver contains
*/
public int getChildCount() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -51,7 +51,7 @@ public abstract class AbstractWriter {
private int startOffset = 0;
private int endOffset = 0;
// If (indentLevel * indentSpace) becomes >= maxLineLength, this will
// get incremened instead of indentLevel to avoid indenting going greater
// get incremented instead of indentLevel to avoid indenting going greater
// than line length.
private int offsetIndent = 0;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -44,7 +44,7 @@ import java.awt.*;
*
* <p>While <code>CompositeView</code>
* does not impose a layout policy on its child <code>View</code>s,
* it does allow for inseting the child <code>View</code>s
* it does allow for insetting the child <code>View</code>s
* it will contain. The insets can be set by either
* {@link #setInsets} or {@link #setParagraphInsets}.
*

View File

@ -252,7 +252,7 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
}
/**
* Gets the text editor component that this caret is
* Gets the text editor component that this caret
* is bound to.
*
* @return the component
@ -1287,12 +1287,12 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou
Position.Bias guessBiasForOffset(int offset, Position.Bias lastBias,
boolean lastLTR) {
// There is an abiguous case here. That if your model looks like:
// There is an ambiguous case here. If your model looks like:
// abAB with the cursor at abB]A (visual representation of
// 3 forward) deleting could either become abB] or
// ab[B. I'ld actually prefer abB]. But, if I implement that
// a delete at abBA] would result in aBA] vs a[BA which I
// think is totally wrong. To get this right we need to know what
// ab[B. I'd actually prefer abB]. But, if I implement that,
// a delete at abBA] would result in aBA] vs a[BA which, I
// think, is totally wrong. To get this right we need to know what
// was deleted. And we could get this from the bidi structure
// in the change event. So:
// PENDING: base this off what was deleted.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1570,7 +1570,7 @@ public class DefaultEditorKit extends EditorKit {
}
/**
* Returns adjustsed {@code y} position that indicates the location to scroll to
* Returns adjusted {@code y} position that indicates the location to scroll to
* after selecting <code>index</code>.
*/
@SuppressWarnings("deprecation")

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, 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
@ -64,7 +64,7 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter
/** Indicates if the value being edited must match the mask. */
private boolean allowsInvalid;
/** If true, editing mode is in overwrite (or strikethough). */
/** If true, overwrite mode is enabled. */
private boolean overwriteMode;
/** If true, any time a valid edit happens commitEdit is invoked. */
@ -159,7 +159,7 @@ public class DefaultFormatter extends JFormattedTextField.AbstractFormatter
* <code>overwriteMode</code> is true (the default), new characters
* overwrite existing characters in the model.
*
* @param overwriteMode Indicates if overwrite or overstrike mode is used
* @param overwriteMode Indicates if overwrite mode is used
*/
public void setOverwriteMode(boolean overwriteMode) {
this.overwriteMode = overwriteMode;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -2351,7 +2351,7 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc
* Recreates <code>toDuplicate</code>. This is called when an
* element needs to be created as the result of an insertion. This
* will recurse and create all the children. This is similar to
* <code>clone</code>, but deteremines the offsets differently.
* <code>clone</code>, but determines the offsets differently.
*/
Element recreateFracturedElement(Element parent, Element toDuplicate) {
if(toDuplicate.isLeaf()) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -467,7 +467,7 @@ public interface Document {
/**
* Inserts a string of content. This will cause a DocumentEvent
* of type DocumentEvent.EventType.INSERT to be sent to the
* registered DocumentListers, unless an exception is thrown.
* registered DocumentListeners, unless an exception is thrown.
* The DocumentEvent will be delivered by calling the
* insertUpdate method on the DocumentListener.
* The offset and length of the generated DocumentEvent

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -256,7 +256,7 @@ public class GapContent extends GapVector implements AbstractDocument.Content, S
if (sortIndex < marks.size()
&& (m = marks.elementAt(sortIndex)).index == index
&& (position = m.getPosition()) != null) {
//position references the correct StickyPostition
//position references the correct StickyPosition
} else {
position = new StickyPosition();
m = new MarkData(index,position,queue);
@ -784,7 +784,7 @@ public class GapContent extends GapVector implements AbstractDocument.Content, S
startIndex = 0;
}
// Reset the location of the refenences.
// Reset the location of the references.
for(int counter = positions.size() - 1; counter >= 0; counter--) {
UndoPosRef ref = (UndoPosRef) positions.elementAt(counter);
ref.resetLocation(endOffset, g1);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2023, 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
@ -973,7 +973,7 @@ public class GlyphView extends View implements TabableView, Cloneable {
}
/**
* Class to hold data needed to justify this GlyphView in a PargraphView.Row
* Class to hold data needed to justify this GlyphView in a ParagraphView.Row
*/
static class JustificationInfo {
//justifiable content start

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2023, 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
@ -113,7 +113,7 @@ public class InternationalFormatter extends DefaultFormatter {
private Comparable<?> min;
/**
* <code>InternationalFormatter</code>'s behavior is dicatated by a
* <code>InternationalFormatter</code>'s behavior is dictated by a
* <code>AttributedCharacterIterator</code> that is obtained from
* the <code>Format</code>. On every edit, assuming
* allows invalid is false, the <code>Format</code> instance is invoked

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -4317,7 +4317,7 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A
* Action is returned, if not and the KeyStroke represents a
* KeyTyped event and the Keymap has a defaultAction,
* <code>DefaultActionKey</code> is returned.
* <p>KeymapActionMap is then able to transate the object passed in
* <p>KeymapActionMap is then able to translate the object passed in
* to either message the Keymap, or message its default implementation.
*/
static class KeymapWrapper extends InputMap {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -382,7 +382,7 @@ public final class StringContent implements AbstractDocument.Content, Serializab
rec.offset = undoLocation;
}
/** Location to reset to when resetLocatino is invoked. */
/** Location to reset to when resetLocation is invoked. */
protected int undoLocation;
/** Position to reset offset. */
protected PosRec rec;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -496,7 +496,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* behavior of SmallAttributeSet. This can be reimplemented
* to return an AttributeSet that provides some sort of
* attribute conversion.
* @param a The set of attributes to be represented in the
* @param a The set of attributes to be represented in
* the compact form.
* @return a compact set of attributes that might be shared
*/
@ -513,7 +513,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* to return a MutableAttributeSet that provides some sort of
* attribute conversion.
*
* @param a The set of attributes to be represented in the
* @param a The set of attributes to be represented in
* the larger form.
* @return a large set of attributes that should trade off
* space for time
@ -535,7 +535,7 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon
* is not found, we create a new set and add it to the pool.
*/
AttributeSet getImmutableUniqueSet() {
// PENDING(prinz) should consider finding a alternative to
// PENDING(prinz) should consider finding an alternative to
// generating extra garbage on search key.
SmallAttributeSet key = createSmallAttributeSet(search);
WeakReference<SmallAttributeSet> reference = attributesPool.get(key);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -243,7 +243,7 @@ public class StyledEditorKit extends DefaultEditorKit {
currentParagraph = doc.getParagraphElement(start);
if (currentParagraph.getStartOffset() == start || dot != mark) {
// Get the attributes from the character at the selection
// if in a different paragrah!
// if in a different paragraph!
run = doc.getCharacterElement(start);
}
else {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -140,7 +140,7 @@ public class Utilities {
// In addition to the previous method it can extend spaces for
// justification.
//
// all params are the same as in the preious method except the last
// all params are the same as in the previous method except the last
// one:
// @param justificationData justificationData for the row.
// if null not justification is needed
@ -275,7 +275,7 @@ public class Utilities {
// In addition to the previous method it can extend spaces for
// justification.
//
// all params are the same as in the preious method except the last
// all params are the same as in the previous method except the last
// one:
// @param justificationData justificationData for the row.
// if null not justification is needed
@ -475,7 +475,7 @@ public class Utilities {
// In addition to the previous method it can extend spaces for
// justification.
//
// all params are the same as in the preious method except the last
// all params are the same as in the previous method except the last
// one:
// @param justificationData justificationData for the row.
// if null not justification is needed

View File

@ -1654,7 +1654,7 @@ class AccessibleHTML implements Accessible {
*
* @see #getAccessibleParent
* @see #getAccessibleChildrenCount
* @gsee #getAccessibleChild
* @see #getAccessibleChild
*/
public int getAccessibleIndexInParent() {
return elementInfo.getIndexInParent();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -1641,7 +1641,7 @@ public class HTMLDocument extends DefaultStyledDocument {
// e.getElement(index - 1) should represent the newline.
index--;
if (endE.getParentElement() != e) {
// The hiearchies don't match, we'll have to manually
// The hierarchies don't match, we'll have to manually
// recreate the leaf at e.getElement(index - 1)
replace(dde, e, index, ++count, start, end, true, true);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -893,7 +893,7 @@ public class ImageView extends View {
}
/**
* Invokes <code>preferenceChanged</code> on the event displatching
* Invokes <code>preferenceChanged</code> on the event dispatching
* thread.
*/
private void safePreferenceChanged() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -93,7 +93,7 @@ class Map implements Serializable {
}
/**
* Returns the AttributeSets representing the differet areas of the Map.
* Returns the AttributeSets representing the different areas of the Map.
*/
public AttributeSet[] getAreas() {
int numAttributes = (areaAttributes != null) ? areaAttributes.size() :

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2023, 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
@ -928,7 +928,7 @@ class Parser implements DTDConstants {
/**
* Parse identifier. Uppercase characters are folded
* to lowercase when lower is true. Returns falsed if
* to lowercase when lower is true. Returns false if
* no identifier is found. [55] 346:17
*/
boolean parseIdentifier(boolean lower) throws IOException {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -348,7 +348,7 @@ public class DefaultTreeModel implements Serializable, TreeModel {
* must be sorted in ascending order. And removedChildren should be
* the array of the children objects that were removed.
*
* @param node parent node which childred were removed
* @param node parent node from which children were removed
* @param childIndices indexes of removed children
* @param removedChildren array of the children objects that were removed
*/
@ -362,7 +362,7 @@ public class DefaultTreeModel implements Serializable, TreeModel {
/**
* Invoke this method after you've changed how the children identified by
* childIndicies are to be represented in the tree.
* childIndices are to be represented in the tree.
*
* @param node changed node
* @param childIndices indexes of changed children

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -75,7 +75,7 @@ public interface TreeNode
* If the receiver does not contain <code>node</code>, -1 will be
* returned.
*
* @param node node to be loked for
* @param node node to be looked for
* @return index of specified node
*/
int getIndex(TreeNode node);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2023, 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
@ -209,7 +209,7 @@ public interface TreeSelectionModel
* Returns true if the path, <code>path</code>, is in the current
* selection.
*
* @param path the path to be loked for
* @param path the path to be looked for
* @return whether the {@code path} is in the current selection
*/
boolean isPathSelected(TreePath path);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -66,7 +66,7 @@ import javax.swing.SwingUtilities;
* <p>
* Say we want to implement addDirtyRegion(Rectangle rect)
* which sends this region to the
* {@code handleDirtyRegions(List<Rect> regiouns)} on the EDT.
* {@code handleDirtyRegions(List<Rect> regions)} on the EDT.
* addDirtyRegions better be accumulated before handling on the EDT.
*
* <p>

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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
@ -78,7 +78,7 @@ public class DefaultLookup {
}
else if (lookup == null) {
// null was passed in, but someone has invoked setDefaultLookup
// with a non-null value, use an instance of DefautLookup
// with a non-null value, use an instance of DefaultLookup
// which will fallback to UIManager.
lookup = new DefaultLookup();
}

View File

@ -130,8 +130,8 @@ import sun.awt.shell.ShellFolderColumnInfo;
* this public API.
* <p>
* This component is intended to be used in a subclass of
* javax.swing.plaf.basic.BasicFileChooserUI. It realies heavily on the
* implementation of BasicFileChooserUI, and is intended to be API compatible
* javax.swing.plaf.basic.BasicFileChooserUI. It relies heavily on the
* implementation of BasicFileChooserUI and is intended to be API compatible
* with earlier implementations of MetalFileChooserUI and WindowsFileChooserUI.
*
* @author Leif Samuelsson

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2023, 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
@ -117,7 +117,7 @@ public interface LightweightContent {
* @param height the logical height of the image
* @param linestride the line stride of the pixel buffer
* @param scale the scale factor of the pixel buffer
* @Deprecated replaced by
* @deprecated replaced by
* {@link #imageBufferReset(int[],int,int,int,int,int,double,double)}
*/
@Deprecated(since = "9")

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -236,9 +236,9 @@ public class PrintingStatus {
}
/**
* Returns whether the printng was aborted using this PrintingStatus
* Returns whether the printing was aborted using this PrintingStatus
*
* @return whether the printng was aborted using this PrintingStatus
* @return whether the printing was aborted using this PrintingStatus
*/
public boolean isAborted() {
return isAborted.get();

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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 SwingUtilities2 {
// WARNING WARNING WARNING WARNING WARNING WARNING
// Many of the following methods are invoked from older API.
// As this older API was not passed a Component, a null Component may
// now be passsed in. For example, SwingUtilities.computeStringWidth
// now be passed in. For example, SwingUtilities.computeStringWidth
// is implemented to call SwingUtilities2.stringWidth, the
// SwingUtilities variant does not take a JComponent, as such
// SwingUtilities2.stringWidth can be passed a null Component.
@ -334,7 +334,7 @@ public class SwingUtilities2 {
* painting. If a Graphics is not available the JComponent method of
* the same name should be used.
* <p>
* Callers should pass in a non-null JComonent, the exception
* Callers should pass in a non-null JComponent, the exception
* to this is if a JComponent is not readily available at the time of
* painting.
* <p>
@ -342,7 +342,7 @@ public class SwingUtilities2 {
* Graphics.
*
* @param c JComponent requesting FontMetrics, may be null
* @param c Graphics Graphics
* @param g Graphics
* @param font Font to get FontMetrics for
*/
@SuppressWarnings("deprecation")
@ -350,7 +350,7 @@ public class SwingUtilities2 {
Font font) {
if (c != null) {
// Note: We assume that we're using the FontMetrics
// from the widget to layout out text, otherwise we can get
// from the widget to lay out text, otherwise we can get
// mismatches when printing.
return c.getFontMetrics(font);
}
@ -2187,7 +2187,7 @@ public class SwingUtilities2 {
/**
* Sets the InputEvent.ALT_GRAPH mask on any modifier passed to the function
* @param modifier the modifier passed
* @return the modifier retiurned with ALT_GRAPH flag set
* @return the modifier returned with ALT_GRAPH flag set
*/
public static int setAltGraphMask(int modifier) {
return (modifier | InputEvent.ALT_GRAPH_DOWN_MASK);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, 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
@ -57,7 +57,7 @@ public class SortArrowIcon implements Icon, UIResource, Serializable {
/**
* Creates a <code>SortArrowIcon</code>.
*
* @param ascending if true, icon respresenting ascending sort, otherwise
* @param ascending if true, icon representing ascending sort, otherwise
* descending
* @param color the color to render the icon
*/
@ -72,7 +72,7 @@ public class SortArrowIcon implements Icon, UIResource, Serializable {
/**
* Creates a <code>SortArrowIcon</code>.
*
* @param ascending if true, icon respresenting ascending sort, otherwise
* @param ascending if true, icon representing ascending sort, otherwise
* descending
* @param colorKey the key used to find color in UIManager
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2023, 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
@ -195,7 +195,7 @@ public class DesktopProperty implements UIDefaults.ActiveValue {
}
/**
* Invalides the current value so that the next invocation of
* Invalidates the current value so that the next invocation of
* <code>createValue</code> will ask for the property again.
*/
public void invalidate() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2023, 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
@ -88,7 +88,7 @@ public class DefaultSynthStyle extends SynthStyle implements Cloneable {
/**
* Creates a new DefaultSynthStyle that is a copy of the passed in
* style. Any StateInfo's of the passed in style are clonsed as well.
* style. Any StateInfo's of the passed in style are cloned as well.
*
* @param style Style to duplicate
*/

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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
@ -721,7 +721,7 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
}
//
// DataModel for DirectoryComboxbox
// DataModel for DirectoryCombobox
//
protected DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) {
return new DirectoryComboBoxModel();
@ -905,7 +905,7 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
}
//
// DataModel for Types Comboxbox
// DataModel for Types Combobox
//
protected FilterComboBoxModel createFilterComboBoxModel() {
return new FilterComboBoxModel();
@ -942,9 +942,9 @@ public class SynthFileChooserUIImpl extends SynthFileChooserUI {
public Object getSelectedItem() {
// Ensure that the current filter is in the list.
// NOTE: we shouldnt' have to do this, since JFileChooser adds
// NOTE: we shouldn't have to do this, since JFileChooser adds
// the filter to the choosable filters list when the filter
// is set. Lets be paranoid just in case someone overrides
// is set. Let's be paranoid just in case someone overrides
// setFileFilter in JFileChooser.
FileFilter currentFilter = getFileChooser().getFileFilter();
boolean found = false;

View File

@ -198,7 +198,7 @@ public class TextComponentPrintable implements CountingPrintable {
* Returns frames under the {@code editor}.
* The frames are created if necessary.
*
* @param editor the {@JEditorPane} to find the frames for
* @param editor the {@link JEditorPane} to find the frames for
* @return list of all frames
*/
private static List<JEditorPane> getFrames(final JEditorPane editor) {

Some files were not shown because too many files have changed in this diff Show More