jdk/src/share/classes/javax/swing/plaf/synth/SynthScrollBarUI.java
changeset 23697 e556a715949f
parent 23010 6dadb192ad81
child 25100 d527cc827d7d
equal deleted inserted replaced
23696:7deff68428ef 23697:e556a715949f
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   373     /**
   373     /**
   374      * {@inheritDoc}
   374      * {@inheritDoc}
   375      */
   375      */
   376     @Override
   376     @Override
   377     protected JButton createDecreaseButton(int orientation)  {
   377     protected JButton createDecreaseButton(int orientation)  {
       
   378         @SuppressWarnings("serial") // anonymous class
   378         SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
   379         SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
   379             @Override
   380             @Override
   380             public boolean contains(int x, int y) {
   381             public boolean contains(int x, int y) {
   381                 if (decrGap < 0) { //there is an overlap between the track and button
   382                 if (decrGap < 0) { //there is an overlap between the track and button
   382                     int width = getWidth();
   383                     int width = getWidth();
   402     /**
   403     /**
   403      * {@inheritDoc}
   404      * {@inheritDoc}
   404      */
   405      */
   405     @Override
   406     @Override
   406     protected JButton createIncreaseButton(int orientation)  {
   407     protected JButton createIncreaseButton(int orientation)  {
       
   408         @SuppressWarnings("serial") // anonymous class
   407         SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
   409         SynthArrowButton synthArrowButton = new SynthArrowButton(orientation) {
   408             @Override
   410             @Override
   409             public boolean contains(int x, int y) {
   411             public boolean contains(int x, int y) {
   410                 if (incrGap < 0) { //there is an overlap between the track and button
   412                 if (incrGap < 0) { //there is an overlap between the track and button
   411                     int width = getWidth();
   413                     int width = getWidth();