This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch visual-test in repository https://gitbox.apache.org/repos/asf/sis.git
commit b20f0670e3e3cda4e7ca30ed0079ffabaf88a08d Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Thu Feb 3 12:34:21 2022 +0100 Spelling fixes in comments. --- src/main/java/org/apache/sis/swing/ExceptionMonitor.java | 2 +- src/main/java/org/apache/sis/swing/SwingUtilities.java | 10 +++++----- src/main/java/org/apache/sis/swing/ZoomPane.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/sis/swing/ExceptionMonitor.java b/src/main/java/org/apache/sis/swing/ExceptionMonitor.java index 7457b6e0bb..874b4e1777 100644 --- a/src/main/java/org/apache/sis/swing/ExceptionMonitor.java +++ b/src/main/java/org/apache/sis/swing/ExceptionMonitor.java @@ -285,7 +285,7 @@ final class ExceptionMonitor extends JOptionPane implements ActionListener { } /** - * Returns the exception trace as a string. This method get the stack trace using the + * Returns the exception trace as a string. This method gets the stack trace using the * {@link Throwable#printStackTrace(PrintWriter)} method, then replaces the tabulation * characters by 4 white spaces. * diff --git a/src/main/java/org/apache/sis/swing/SwingUtilities.java b/src/main/java/org/apache/sis/swing/SwingUtilities.java index 34de32d45b..1d7d5604a5 100644 --- a/src/main/java/org/apache/sis/swing/SwingUtilities.java +++ b/src/main/java/org/apache/sis/swing/SwingUtilities.java @@ -168,7 +168,7 @@ final class SwingUtilities extends Static { owner, // Parent component dialog, // Message title, // Title of dialog box - JOptionPane.OK_CANCEL_OPTION, // Button to shown + JOptionPane.OK_CANCEL_OPTION, // Button to show JOptionPane.PLAIN_MESSAGE, // Message type null, // Icon options, // Button list @@ -178,7 +178,7 @@ final class SwingUtilities extends Static { owner, // Parent component dialog, // Message title, // Title of dialog box - JOptionPane.OK_CANCEL_OPTION, // Button to shown + JOptionPane.OK_CANCEL_OPTION, // Button to show JOptionPane.PLAIN_MESSAGE, // Message type null, // Icon options, // Button list @@ -248,14 +248,14 @@ final class SwingUtilities extends Static { owner, // Parent component message, // Message title, // Title of dialog box - JOptionPane.YES_NO_OPTION, // Button to shown + JOptionPane.YES_NO_OPTION, // Button to show type); // Message type } else { choice = JOptionPane.showConfirmDialog( owner, // Parent component message, // Message title, // Title of dialog box - JOptionPane.YES_NO_OPTION, // Button to shown + JOptionPane.YES_NO_OPTION, // Button to show type); // Message type } return choice == JOptionPane.YES_OPTION; @@ -267,7 +267,7 @@ final class SwingUtilities extends Static { * * <div class="note"><b>Note:</b> in a previous version, we were assigning to the row headers * the same cell renderer than the one created by <cite>Swing</cite> for the column headers. - * But it produced strange effects when the L&F uses a vertical gradient instead than a uniform color.</div> + * But it produced strange effects when the L&F uses a vertical gradient instead of a uniform color.</div> * * @param table the table to setup as row headers. * @return the renderer which has been assigned to the table. diff --git a/src/main/java/org/apache/sis/swing/ZoomPane.java b/src/main/java/org/apache/sis/swing/ZoomPane.java index 72bf5a6cf3..896dc8f45a 100644 --- a/src/main/java/org/apache/sis/swing/ZoomPane.java +++ b/src/main/java/org/apache/sis/swing/ZoomPane.java @@ -2279,7 +2279,7 @@ public abstract class ZoomPane extends JComponent implements DeformableViewer { /** * Returns the insets of this component. - * If different insets are desired, override {@link #getInsets(Insets)} instead than this method. + * If different insets are desired, override {@link #getInsets(Insets)} instead of this method. */ @Override public final Insets getInsets() {