# HG changeset patch # User serb # Date 1423241360 -10800 # Node ID 79f45920a5ce0eed0dbd38852d5b15985b73e29a # Parent 9103251db9205607977305bedb06b13f4826d0af 8063066: Some look and feels ignores the JSlider.PaintTrack property Reviewed-by: ant, azvegint, alexsch diff -r 9103251db920 -r 79f45920a5ce jdk/src/java.desktop/share/classes/javax/swing/JSlider.java --- 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