8063066: Some look and feels ignores the JSlider.PaintTrack property
Reviewed-by: ant, azvegint, alexsch
--- 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