changeset 29012:79f45920a5ce

8063066: Some look and feels ignores the JSlider.PaintTrack property Reviewed-by: ant, azvegint, alexsch
author serb
date Fri, 06 Feb 2015 19:49:20 +0300
parents 9103251db920
children 6b20c10ac851
files jdk/src/java.desktop/share/classes/javax/swing/JSlider.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.desktop/share/classes/javax/swing/JSlider.java	Mon Feb 02 21:38:19 2015 +0300
+++ b/jdk/src/java.desktop/share/classes/javax/swing/JSlider.java	Fri Feb 06 19:49:20 2015 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1287,10 +1287,10 @@
         return paintTrack;
     }
 
-
     /**
-     * Determines whether the track is painted on the slider.
-     * By default, this property is {@code true}.
+     * Determines whether the track is painted on the slider. By default, this
+     * property is {@code true}. It is up to the look and feel to honor this
+     * property, some may choose to ignore it.
      *
      * @param  b  whether or not to paint the slider track
      * @see #getPaintTrack