8343037: Missing @since tag on JColorChooser.showDialog overload

Reviewed-by: prr
This commit is contained in:
Prasanta Sadhukhan 2024-10-30 02:52:54 +00:00
parent ceaa71e731
commit bd795946e7
2 changed files with 4 additions and 0 deletions
src/java.desktop/share/classes/javax/swing

@ -175,7 +175,9 @@ public class JColorChooser extends JComponent implements Accessible {
* @return the selected color or <code>null</code> if the user opted out
* @throws HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
*
* @see java.awt.GraphicsEnvironment#isHeadless
* @since 9
*/
@SuppressWarnings("deprecation")
public static Color showDialog(Component component, String title,

@ -229,6 +229,7 @@ public abstract class AbstractColorChooserPanel extends JPanel {
*
* @param b true if the transparency of a color can be selected
* @see #isColorTransparencySelectionEnabled()
* @since 9
*/
@BeanProperty(description
= "Sets the transparency of a color selection on or off.")
@ -241,6 +242,7 @@ public abstract class AbstractColorChooserPanel extends JPanel {
*
* @return true if the transparency of a color can be selected
* @see #setColorTransparencySelectionEnabled(boolean)
* @since 9
*/
public boolean isColorTransparencySelectionEnabled(){
return true;