From 11ef4537fa585eb5d1308d5d092841e29c78de73 Mon Sep 17 00:00:00 2001 From: Steve Sides Date: Wed, 11 Feb 2015 15:10:33 +0300 Subject: [PATCH] 8044394: javadoc for BasicOptionPaneUI.addMessageComponents() has typo and grammar errors Fix typos in javadoc of BasicOptionPaneUI.addMessageComponents() Reviewed-by: alexsch, serb --- .../swing/plaf/basic/BasicOptionPaneUI.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java index 4296f281bfe..63a641175cd 100644 --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java @@ -377,15 +377,16 @@ public class BasicOptionPaneUI extends OptionPaneUI { } /** - * Creates the appropriate object to represent {@code msg} and - * places it into {@code container}. If {@code msg} is an instance of - * {@code Component}, it is added directly, if it is an {@code Icon}, - * a {@code JLabel} is created to represent it, otherwise a {@code JLabel} is - * created for the string, if {@code d} is an Object[], this method - * will be recursively invoked for the children. {@code internallyCreated} is - * {@code true} if Objc is an instance of {@code Component} and was created - * internally by this method (this is used to correctly set - * {@code hasCustomComponents} only if {@code internallyCreated} is {@code false}). + * Creates the appropriate object to represent {@code msg} and places it + * into {@code container}. If {@code msg} is an instance of + * {@code Component}, it is added directly; if it is an {@code Icon}, a + * {@code JLabel} is created to represent it; otherwise, a {@code JLabel} + * is created for the string. If {@code msg} is an Object[], this method + * will be recursively invoked for the children. {@code internallyCreated} + * is {@code true} if {@code msg} is an instance of {@code Component} and + * was created internally by this method (this is used to correctly set + * {@code hasCustomComponents} only if {@code internallyCreated} is + * {@code false}). * * @param container a container * @param cons an instance of {@code GridBagConstraints}