<Swing Dev> Resend JDK 9 RFR of JDK-8076422: Fix missing doclint warnings in javax.swing.border
joe darcy
joe.darcy at oracle.com
Thu Apr 2 16:07:38 UTC 2015
Hi Sergey,
On 4/2/2015 5:22 AM, Sergey Bylokhov wrote:
> Hi, Joe.
> 01.04.15 6:12, joe darcy wrote:
>> + /**
>> + * Returns the font of the component.
>> + * @return the font of the component
>> + * @param c the component
>> + */
>> protected Font getFont(Component c) {
>> Font font = getTitleFont();
>> if (font != null) {
>>
> It seems that this method returns the font of the TitledBorder. (I
> think this method it was made protected accidentally, and the idea was
> that it shall be private, but now we cannot change it.)
>
After a closer look at the code, this javadoc seems to more accurately
describe the behavior of the method:
+ /**
+ * Returns the font of the title (if present), otherwise returns
+ * the font of the component (if present), otherwise returns a
+ * plain dialog font.
+ * @return the font of the title or component or a plain font
+ * @param c the component
+ */
How does that sound?
Thanks,
-Joe
More information about the swing-dev
mailing list