Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
6251901: BasicTextUI: installDefaults method are contrary to the docu…
…mentation

Reviewed-by: azvegint, kizune, aivanov
  • Loading branch information
prsadhuk committed Mar 10, 2021
1 parent fdd3941 commit c0542ed85eff9c3843d0d21441a5a6486a7ba139
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java
@@ -303,10 +303,8 @@ private void updateBackground(JTextComponent c) {
/**
* Initializes component properties, such as font, foreground,
* background, caret color, selection color, selected text color,
* disabled text color, and border color. The font, foreground, and
* background properties are only set if their current value is either null
* or a UIResource, other properties are set if the current
* value is null.
* disabled text color, border, and margin. Each property is set
* if its current value is either null or a UIResource.
*
* @see #uninstallDefaults
* @see #installUI

0 comments on commit c0542ed

Please sign in to comment.